2 ## ======================
3 ## == Helper libraries ==
4 ## ======================
7 _cpExtensions_components
8 cpExtensions/Config.h.in
9 cpExtensions/DataStructures
10 cpExtensions/Algorithms
11 cpExtensions/Interaction
12 cpExtensions/Visualization
15 IF(BUILD_QT4_COMPONENTS)
16 LIST(APPEND _cpExtensions_components "cpExtensions/QT")
17 ENDIF(BUILD_QT4_COMPONENTS)
18 cpPlugins_BuildLibrary(cpExtensions SHARED ${_cpExtensions_components})
19 TARGET_LINK_LIBRARIES(
21 ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES}
24 ## ============================================
25 ## == Explicit instances from templated code ==
26 ## ============================================
36 SET(_real_config ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h)
38 OUTPUT ${_real_config}
39 COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins
40 COMMAND ${cpPlugins_bash_CreateRealConfig_APP} ${_real_config}
41 DEPENDS ${cpPlugins_bash_CreateRealConfig_APP}
52 IF(BUILD_QT4_COMPONENTS)
53 LIST(APPEND _cpPlugins_components "cpPlugins/QT")
54 ENDIF(BUILD_QT4_COMPONENTS)
55 cpPlugins_BuildLibrary(cpPlugins SHARED ${_cpPlugins_components})
56 TARGET_LINK_LIBRARIES(cpPlugins ${ITK_LIBRARIES} ${VTK_LIBRARIES})
57 IF(BUILD_QT4_COMPONENTS)
58 TARGET_LINK_LIBRARIES(cpPlugins ${QT_LIBRARIES})
59 ENDIF(BUILD_QT4_COMPONENTS)
61 ## ===================================
62 ## == Base library for applications ==
63 ## ===================================
65 IF(BUILD_QT4_COMPONENTS)
66 cpPlugins_BuildLibrary(cpBaseQtApplication SHARED cpBaseQtApplication)
67 cpPlugins_BuildLibrary(cp_QCustomPlot SHARED QCustomPlot)
68 TARGET_LINK_LIBRARIES(
70 cpExtensions cpPlugins
72 TARGET_LINK_LIBRARIES(cp_QCustomPlot ${QT_LIBRARIES})
73 ENDIF(BUILD_QT4_COMPONENTS)