5,11 → 5,7 |
# a custom target that is always built |
|
if (NOT CMAKE_VERSION VERSION_LESS "3.2.0") |
if (WANT_QT6) |
add_custom_target(svnheader ALL COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_SOURCE_DIR}/cmake/modules/getsvn.cmake BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h) |
else() |
add_custom_target(svnheader ALL COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_MODULE_PATH}/getsvn.cmake BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/svnversion.h) |
endif() |
else () |
add_custom_target(svnheader ALL DEPENDS svn_header ) # svn_header is nothing more than a unique string |
# creates svnheader.h using cmake script |
765,7 → 761,6 |
|
message("RPATH: ${CMAKE_INSTALL_RPATH}") |
|
IF(NOT WANT_QT6) |
target_link_libraries(${EXE_NAME} |
PUBLIC |
${Qt5Core_LIBRARIES} |
777,16 → 772,6 |
PRIVATE |
${Qt5PrintSupport_LIBRARIES} |
) |
else() |
target_link_libraries(${EXE_NAME} |
PUBLIC |
Qt6::Core |
Qt6::Core5Compat |
Qt6::Gui |
Qt6::Widgets |
Qt6::Network |
) |
endif() |
|
target_link_libraries(${EXE_NAME} |
PUBLIC |