]> vaikene.ee Git - evaf/blob - src/libs/Gui/CMakeLists.txt
Warning fixes and copyright update.
[evaf] / src / libs / Gui / CMakeLists.txt
1 # Name of the target
2 set(TARGET GuiLib)
3
4 # Needed for exporting/importing symbols
5 add_definitions(-DGUI_LIBRARY)
6
7 # Include files
8 include_directories(${eVaf_INCLUDE})
9
10 # Required eVaf libraries
11 set(eVaf_LIBRARIES)
12
13 # Source files
14 set(SRCS
15 libgui.h
16 panel.cpp
17 panel.h
18 version.h
19 )
20
21 # Header files for the meta-object compiler
22 set(MOC_HDRS
23 panel.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 Widgets)
36
37 target_link_libraries(${TARGET} ${QT_LIBRARIES} ${eVaf_LIBRARIES})
38
39 install(TARGETS ${TARGET} DESTINATION bin)