* Moves qt integration solely to the nodegui core addon * Adds lint fixes * moved to integration core * cleans up export snippet * revert package.json * Add exit if app->exec finishes. * lint fix * Makes QApplication custom * adds qobject to wrap of qapp * Adds working qt run looper * Adds font default * Adds qt installer * Updates qode integration to v2.0.1 * fix cpp lints * Fixes lint and deps * Adds miniqt installation * adds setup mini qt script * skips tests due to issues with jest * fix config and download path for linux and windows * Adds multiple artifact downloader * fix qt config and compilation * Fixes qode path for windows (now it can load dll's easily) * Add compilation * fix windows path setup * use scripts directly * enabled tests back * fix ubuntu deps * update to alpha release * fix workflow * adds more artifacts and funding field * change to alpha v2 * update prebuild yml * revert build action * disabling prebuild for now * switch to stable release 5.14.1 * version bump
41 lines
1.3 KiB
CMake
41 lines
1.3 KiB
CMake
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
find_program(CCACHE_PROGRAM ccache)
|
|
if(CCACHE_PROGRAM)
|
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
|
|
endif()
|
|
|
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
|
|
|
|
function(AddCommonConfig addonName)
|
|
target_compile_features(${addonName} PRIVATE
|
|
cxx_inheriting_constructors
|
|
cxx_lambdas
|
|
cxx_auto_type
|
|
cxx_variadic_templates
|
|
cxx_variable_templates
|
|
)
|
|
|
|
if(napi_build_version)
|
|
target_compile_definitions(${addonName} PRIVATE
|
|
NAPI_VERSION=${napi_build_version}
|
|
)
|
|
endif()
|
|
|
|
if (WIN32)
|
|
target_compile_definitions(${addonName} PRIVATE
|
|
ENUM_BITFIELDS_NOT_SUPPORTED
|
|
)
|
|
endif()
|
|
endfunction(AddCommonConfig addonName)
|
|
|
|
function(GetModuleVersion moduleName packageJsonDir)
|
|
execute_process(COMMAND node -p "require('${packageJsonDir}/package.json').version"
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
OUTPUT_VARIABLE packageJsonVersion
|
|
)
|
|
string(REPLACE "\n" "" packageJsonVersion "${packageJsonVersion}")
|
|
string(REPLACE "\"" "" packageJsonVersion "${packageJsonVersion}")
|
|
|
|
set("${moduleName}_VERSION" "${packageJsonVersion}" PARENT_SCOPE)
|
|
endfunction(GetModuleVersion moduleName packageJsonDir) |