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