]> vaikene.ee Git - evaf/blob - src/libs/Plugins/CMakeLists.txt
Ported to Qt5
[evaf] / src / libs / Plugins / CMakeLists.txt
1 # Name of the target
2 set(TARGET PluginsLib)
3
4 # Needed for exporting/importing symbols
5 add_definitions(-DPLUGINS_LIBRARY)
6
7 # Include files
8 include_directories(${eVaf_INCLUDE})
9
10 # Required eVaf libraries
11 set(eVaf_LIBRARIES CommonLib)
12
13 # Source files
14 set(SRCS
15 pluginmanager.cpp
16 )
17
18 # Header files for the meta-object compiler
19 set(MOC_HDRS
20 iplugin.h
21 ipluginfactory.h
22 pluginmanager.h
23 pluginmanager_p.h
24 )
25
26 # Version info resource file for Windows builds
27 if(WIN32 AND NOT MINGW)
28 set(SRCS ${SRCS} version.rc)
29 endif(WIN32 AND NOT MINGW)
30
31 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
32
33 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
34
35 qt5_use_modules(${TARGET} Core Xml)
36
37 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
38
39 install(TARGETS ${TARGET} DESTINATION bin)