forked from commontk/CTK
/
CMakeLists.txt
67 lines (54 loc) · 1.26 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
project(CTKMessagingCore)
#
# See CTK/CMake/ctkMacroBuildLib.cmake for details
#
set(KIT_export_directive "CTK_MESSAGING_CORE_EXPORT")
# Source files
set(KIT_SRCS
ctkMessagingServer.h
ctkMessagingServer.cpp
ctkMessagingClient.h
ctkMessagingClient.cpp
)
# Headers that should run through moc
set(KIT_MOC_SRCS
)
# UI files
set(KIT_UI_FORMS
)
# Resources
set(KIT_resources
)
# Set VTK_LIBRARIES variable
#set(ZMQ_LIBRARIES
# vtkCommon
# vtkFiltering
# )
# Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
# The following macro will read the target libraries from the file 'target_libraries.cmake'
ctkFunctionGetTargetLibraries(KIT_target_libraries)
ctkMacroBuildLib(
NAME ${PROJECT_NAME}
EXPORT_DIRECTIVE ${KIT_export_directive}
SRCS ${KIT_SRCS}
MOC_SRCS ${KIT_MOC_SRCS}
UI_FORMS ${KIT_UI_FORMS}
TARGET_LIBRARIES ${KIT_target_libraries}
RESOURCES ${KIT_resources}
LIBRARY_TYPE ${CTK_LIBRARY_MODE}
)
if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
ctkMacroBuildLibWrapper(
TARGET ${PROJECT_NAME}
SRCS ${KIT_SRCS}
WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
)
endif()
# Plugins
#if(BUILD_QTDESIGNER_PLUGINS)
# add_subdirectory(Plugins)
#endif()
# Testing
if(BUILD_TESTING)
add_subdirectory(Testing)
endif()