]> vaikene.ee Git - evaf/blob - src/plugins/SdiWindow/CMakeLists.txt
Warning fixes and copyright update.
[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 factory.h
17 isdiwindow.h
18 libsdiwindow.h
19 sdiwindow.cpp
20 sdiwindow.h
21 version.h
22 )
23
24 # Header files for the meta-object compiler
25 set(MOC_HDRS
26 factory.h
27 sdiwindow.h
28 )
29
30 # Version info resource file for Windows builds
31 if(WIN32 AND NOT MINGW)
32 set(SRCS ${SRCS} version.rc)
33 endif(WIN32 AND NOT MINGW)
34
35 qt5_wrap_cpp(MOC_SRCS ${MOC_HDRS})
36
37 add_library(${TARGET} SHARED ${SRCS} ${MOC_SRCS})
38
39 qt5_use_modules(${TARGET} Core Widgets Xml)
40
41 target_link_libraries(${TARGET} ${eVaf_LIBRARIES})
42
43 install(TARGETS ${TARGET} DESTINATION bin)