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