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