/
CMakeLists.txt
39 lines (29 loc) · 937 Bytes
/
CMakeLists.txt
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
31
32
33
34
35
36
37
38
39
set(TARGET daggy)
find_package(Qt5 COMPONENTS Core REQUIRED)
set(CMAKE_INSTALL_DEFAULT_COMPONENT_NAME application)
set(SOURCES ${SOURCES}
main.cpp
CFileDataAggregator.cpp
CConsoleDaggy.cpp
Common.cpp
)
if (WIN32)
set(SOURCES ${SOURCES}
ISystemSignalHandlerWin32.cpp
)
else()
set(SOURCES ${SOURCES}
ISystemSignalHandlerUnix.cpp
)
endif()
add_definitions(-DAPP_ICON="${CMAKE_CURRENT_LIST_DIR}/../icons/daggy.ico")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/simple_multiple_servers.yaml ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/simple_multiple_servers.json ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} COPYONLY)
set(APP_NAME "${TARGET}")
set(APP_DESCRIPTION "app")
set(FILETYPE "VFT_APP")
include(version_meta)
add_executable(${TARGET} ${SOURCES})
target_link_libraries(${TARGET} DaggyCore)
include(precompiled)
install(TARGETS ${TARGET} RUNTIME)