]> vaikene.ee Git - evaf/blob - src/libs/Common/CMakeLists.txt
Merged the Common::iEnv interface into Common::iApp
[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 )
27
28 # Header files for the meta-object compiler
29 set(MOC_HDRS
30 iapp.h
31 ieventqueue.h
32 ilogger.h
33 iregistry.h
34 app.h
35 eventqueue.h
36 logger.h
37 registry.h
38 )
39
40 # Version info resource file for Windows builds
41 if(WIN32)
42 set(SRCS ${SRCS} version.rc)
43 endif(WIN32)
44
45 qt4_wrap_cpp(MOC_SRCS ${MOC_HDRS})
46
47 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
48
49 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
50
51 install(TARGETS ${TARGET} DESTINATION bin)