]> vaikene.ee Git - evaf/blob - src/libs/Common/CMakeLists.txt
bb87e9f8cfe9b827f9a39a36d083b4d6bbafbc49
[evaf] / src / libs / Common / CMakeLists.txt
1 # Name of the target
2 set(TARGET CommonLib)
3
4 # Qt modules
5 set(QT_DONT_USE_QTGUI TRUE)
6 include(${QT_USE_FILE})
7
8 # Needed for exporting/importing symbols
9 add_definitions(-DCOMMON_LIBRARY)
10
11 # Include files
12 include_directories(${eVaf_INCLUDE})
13
14 # Required eVaf libraries
15 set(eVaf_LIBRARIES)
16
17 # Source files
18 set(SRCS
19 app.cpp
20 event.cpp
21 eventqueue.cpp
22 globals.cpp
23 logger.cpp
24 registry.cpp
25 util.cpp
26 inifile.cpp
27 )
28
29 # Header files for the meta-object compiler
30 set(MOC_HDRS
31 iapp.h
32 ieventqueue.h
33 ilogger.h
34 iregistry.h
35 app.h
36 eventqueue.h
37 logger.h
38 registry.h
39 )
40
41 # Version info resource file for Windows builds
42 if(WIN32)
43 set(SRCS ${SRCS} version.rc)
44 endif(WIN32)
45
46 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
47
48 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
49
50 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
51
52 install(TARGETS ${TARGET} DESTINATION bin)