]> vaikene.ee Git - evaf/blob - src/libs/Common/CMakeLists.txt
83affd4f2c5130191a4136f76a948bd08efeeb64
[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 config.cpp
28 prop.cpp
29 )
30
31 # Header files for the meta-object compiler
32 set(MOC_HDRS
33 iapp.h
34 ieventqueue.h
35 ilogger.h
36 iregistry.h
37 iconfig.h
38 iprop.h
39 app.h
40 eventqueue.h
41 logger.h
42 registry.h
43 config.h
44 prop.h
45 )
46
47 # Version info resource file for Windows builds
48 if(WIN32 AND NOT MINGW)
49 set(SRCS ${SRCS} version.rc)
50 endif(WIN32 AND NOT MINGW)
51
52 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
53
54 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
55
56 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
57
58 install(TARGETS ${TARGET} DESTINATION bin)