1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
if (Qt5_FOUND)
set(QT_USE_QTMAIN ON)
#include(${QT_USE_FILE})
find_package(Qt5 COMPONENTS Widgets)
set(thymiownetconfig_SRCS
ThymioWNetConfig.cpp)
qt5_wrap_cpp(thymiownetconfig_MOCS
ThymioWNetConfig.h
)
qt5_add_resources(resfiles thymiownetconfig.qrc)
include_directories (${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
add_executable(thymiownetconfig WIN32 ${thymiownetconfig_SRCS} ${thymiownetconfig_MOCS} ${resfiles} ${CMAKE_BINARY_DIR}/version.h)
if (HAS_DYN_VERSION)
add_dependencies(thymiownetconfig versionheader)
endif (HAS_DYN_VERSION)
target_link_libraries(thymiownetconfig ${QT_LIBRARIES} ${ASEBA_CORE_LIBRARIES} Qt5::Widgets)
install(TARGETS thymiownetconfig RUNTIME DESTINATION bin LIBRARY DESTINATION bin)
endif (Qt5_FOUND)
if (UNIX)
add_executable(thymiownetconfig-cli thymiownetconfig-cli.c)
install(TARGETS thymiownetconfig-cli RUNTIME DESTINATION bin LIBRARY DESTINATION bin)
endif (UNIX)
|