1 ## ================================
2 ## == Find cpPlugins-cmake tools ==
3 ## ================================
5 SET(ITK_DIR "@ITK_DIR@")
6 SET(VTK_DIR "@VTK_DIR@")
7 IF("@Qt4_FOUND@" STREQUAL "TRUE")
8 SET(BUILD_QT4_COMPONENTS ON)
9 SET(QT_QMAKE_EXECUTABLE "@QT_QMAKE_EXECUTABLE@")
10 ENDIF("@Qt4_FOUND@" STREQUAL "TRUE")
12 ## ====================
13 ## == Find libraries ==
14 ## ====================
17 cpPlugins_AllInstances
18 cpInstances_BaseObjects
20 cpInstances_Geometries
21 cpInstances_Extensions
22 CACHE STRING "All instances from templated code"
24 MARK_AS_ADVANCED(FORCE cpPlugins_AllInstances)
33 LIST(APPEND _all_libs cpBaseQtApplication)
34 LIST(APPEND _all_libs cp_QCustomPlot)
36 SET(cpPlugins_Libraries ${_all_libs} CACHE STRING "cpPlugins base libraries")
37 MARK_AS_ADVANCED(FORCE cpPlugins_Libraries)
39 SET(_all_libs ${cpPlugins_AllInstances} ${cpPlugins_Libraries})
41 FOREACH(_l ${_all_libs})
46 @CMAKE_INSTALL_PREFIX@/bin
47 @CMAKE_INSTALL_PREFIX@/lib
51 MARK_AS_ADVANCED(FORCE ${_l}_LIB)
52 GET_FILENAME_COMPONENT(_dir ${${_l}_LIB} DIRECTORY)
53 LIST(APPEND _l_locations ${_dir})
54 LIST(REMOVE_DUPLICATES _l_locations)
58 LINK_DIRECTORIES(${_l_locations})
61 ## ==============================
62 ## == Find include directories ==
63 ## ==============================
65 ## TODO: this is not completely correct!!!
67 @CMAKE_INSTALL_PREFIX@/include
68 @CMAKE_INSTALL_PREFIX@/include/cpPlugins/cpInstances
71 @PROJECT_SOURCE_DIR@/lib
72 @PROJECT_BINARY_DIR@/lib
73 @PROJECT_SOURCE_DIR@/lib/cpInstances
74 @PROJECT_BINARY_DIR@/lib/cpInstances
77 ## ============================
78 ## == Find bash applications ==
79 ## ============================
83 "@cpPlugins_bash_CreateRealConfig_APP@"
84 "@cpPlugins_bash_CreateInstances_APP@"
85 "@cpPlugins_bash_CreateDemanglers_APP@"
86 "@cpPlugins_bash_CreatePlugins_APP@"
87 "@cpPlugins_bash_HostCreator_APP@"
91 FOREACH(_p ${_exec_programs})
96 PATHS @CMAKE_INSTALL_PREFIX@/bin @PROJECT_BINARY_DIR@ ${_b_locations}
97 PATH_SUFFIXES bin sbin
98 DOC "Where is ${_prog}?"
101 MARK_AS_ADVANCED(FORCE ${_p}_APP)
102 GET_FILENAME_COMPONENT(_dir ${${_p}_APP} DIRECTORY)
103 LIST(APPEND _b_locations ${_dir})
104 LIST(REMOVE_DUPLICATES _b_locations)
108 ## ==========================
109 ## == Configuration values ==
110 ## ==========================
112 SET(cpPlugins_NUMBER_OF_FILES "@cpPlugins_NUMBER_OF_FILES@" CACHE STRING "Internal")
113 SET(cpPlugins_PROCESS_DIMS "@cpPlugins_PROCESS_DIMS@" CACHE STRING "Internal")
114 SET(cpPlugins_VISUAL_DIMS "@cpPlugins_VISUAL_DIMS@" CACHE STRING "Internal")
116 MARK_AS_ADVANCED(FORCE cpPlugins_NUMBER_OF_FILES)
117 MARK_AS_ADVANCED(FORCE cpPlugins_PROCESS_DIMS)
118 MARK_AS_ADVANCED(FORCE cpPlugins_VISUAL_DIMS)