]> vaikene.ee Git - evaf/blob - src/main/cli/CMakeLists.txt
Added more files to the project.
[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)
13
14 # Source files
15 set(SRCS
16 main.cpp
17 exithandler.cpp
18 version.cpp
19 )
20
21 # Header files for the meta-object compiler
22 set(MOC_HDRS
23 main.h
24 version_p.h
25 )
26
27 # Version info resource file for Windows builds
28 if(WIN32)
29 set(SRCS ${SRCS} version.rc cli.rc)
30 endif(WIN32)
31
32 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
33
34 add_executable(${TARGET} ${SRCS} ${MOC_SRCS})
35
36 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
37
38 install(TARGETS ${TARGET} DESTINATION bin)