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