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