2020-07-18 19:48:02 +05:30
|
|
|
######## Configure the file with build properties ########
|
|
|
|
|
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/BuildConfig.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/BuildConfig.cpp")
|
|
|
|
|
|
|
|
add_library(BuildConfig STATIC
|
|
|
|
BuildConfig.h
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/BuildConfig.cpp
|
|
|
|
)
|
|
|
|
|
2022-05-03 01:04:09 +05:30
|
|
|
target_link_libraries(BuildConfig Qt${QT_VERSION_MAJOR}::Core)
|
2020-07-18 19:48:02 +05:30
|
|
|
target_include_directories(BuildConfig PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|