]> Creatis software - cpPlugins.git/blob - lib/CMakeLists.txt
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / CMakeLists.txt
1
2 ## =========================
3 ## == Auxiliary libraries ==
4 ## =========================
5
6 CompileLibFromDir(cp_tinyxml2 SHARED tinyxml2)
7 CompileLibFromDir(cpExtensions SHARED cpExtensions)
8 TARGET_LINK_LIBRARIES(
9   cpExtensions ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES}
10   )
11 IF(USE_QT4)
12   CompileLibFromDir(cp_QCustomPlot SHARED QCustomPlot)
13   TARGET_LINK_LIBRARIES(cp_QCustomPlot ${QT_LIBRARIES})
14 ENDIF(USE_QT4)
15
16 ## ==================
17 ## == Main library ==
18 ## ==================
19
20 ADD_CUSTOM_COMMAND(
21   OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
22   COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins
23   COMMAND ${cpPlugins_bash_CreateRealConfig_APP} ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
24   DEPENDS ${cpPlugins_bash_CreateRealConfig_APP}
25   )
26 CompileLibFromDir(
27   cpPlugins SHARED
28   ${CMAKE_CURRENT_SOURCE_DIR}/cpPlugins
29   ${CMAKE_CURRENT_BINARY_DIR}/cpPlugins/RealConfig.h
30   )
31 TARGET_LINK_LIBRARIES(
32   cpPlugins
33   cp_tinyxml2
34   ${QT_LIBRARIES} ${ITK_LIBRARIES} ${VTK_LIBRARIES}
35   )
36
37 ## =====================
38 ## == Other libraries ==
39 ## =====================
40
41 SUBDIRS(cpInstances)
42
43 IF(USE_QT4)
44   CompileLibFromDir(cpBaseQtApplication SHARED cpBaseQtApplication)
45   TARGET_LINK_LIBRARIES(
46     cpBaseQtApplication
47     ${QT_LIBRARIES} cpExtensions cpPlugins
48     )
49 ENDIF(USE_QT4)
50
51 ## eof - $RCSfile$