]> vaikene.ee Git - evaf/blob - src/main/CLI/CMakeLists.txt
Ported to Qt5
[evaf] / src / main / CLI / CMakeLists.txt
1 # Name of the target
2 set(TARGET eVafCLI)
3
4 # Include files
5 include_directories(${eVaf_INCLUDE})
6
7 # Required eVaf libraries
8 set(eVaf_LIBRARIES CommonLib PluginsLib)
9
10 # Source files
11 set(SRCS
12 main.cpp
13 exithandler.cpp
14 )
15
16 # Header files for the meta-object compiler
17 set(MOC_HDRS
18 main.h
19 )
20
21 # Version info resource file for Windows builds
22 if(WIN32 AND NOT MINGW)
23 set(SRCS ${SRCS} version.rc cli.rc)
24 endif(WIN32 AND NOT MINGW)
25
26 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
27
28 add_executable(${TARGET} ${SRCS} ${MOC_SRCS})
29
30 qt5_use_modules(${TARGET} Core)
31
32 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
33
34 install(TARGETS ${TARGET} DESTINATION bin)