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