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")
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)
35 SET(cpPlugins_Libraries ${_all_libs} CACHE STRING "cpPlugins base libraries")
36 MARK_AS_ADVANCED(FORCE cpPlugins_Libraries)
38 SET(_all_libs ${cpPlugins_AllInstances} ${cpPlugins_Libraries})
40 FOREACH(_l ${_all_libs})
45 @CMAKE_INSTALL_PREFIX@/bin
46 @CMAKE_INSTALL_PREFIX@/lib
50 MARK_AS_ADVANCED(FORCE ${_l}_LIB)
51 GET_FILENAME_COMPONENT(_dir ${${_l}_LIB} DIRECTORY)
52 LIST(APPEND _l_locations ${_dir})
53 LIST(REMOVE_DUPLICATES _l_locations)
57 LINK_DIRECTORIES(${_l_locations})
60 ## ==============================
61 ## == Find include directories ==
62 ## ==============================
64 ## TODO: this is not completely correct!!!
66 @CMAKE_INSTALL_PREFIX@/include
67 @CMAKE_INSTALL_PREFIX@/include/cpPlugins/cpInstances
70 @PROJECT_SOURCE_DIR@/lib
71 @PROJECT_BINARY_DIR@/lib
72 @PROJECT_SOURCE_DIR@/lib/cpInstances
73 @PROJECT_BINARY_DIR@/lib/cpInstances
76 ## ============================
77 ## == Find bash applications ==
78 ## ============================
82 "@cpPlugins_bash_CreateRealConfig_APP@"
83 "@cpPlugins_bash_CreateInstances_APP@"
84 "@cpPlugins_bash_CreateDemanglers_APP@"
85 "@cpPlugins_bash_CreatePlugins_APP@"
86 "@cpPlugins_bash_HostCreator_APP@"
90 FOREACH(_p ${_exec_programs})
95 PATHS @CMAKE_INSTALL_PREFIX@/bin @PROJECT_BINARY_DIR@ ${_b_locations}
96 PATH_SUFFIXES bin sbin
97 DOC "Where is ${_prog}?"
100 MARK_AS_ADVANCED(FORCE ${_p}_APP)
101 GET_FILENAME_COMPONENT(_dir ${${_p}_APP} DIRECTORY)
102 LIST(APPEND _b_locations ${_dir})
103 LIST(REMOVE_DUPLICATES _b_locations)
107 ## ==========================
108 ## == Configuration values ==
109 ## ==========================
111 SET(cpPlugins_NUMBER_OF_FILES "@cpPlugins_NUMBER_OF_FILES@" CACHE STRING "Internal")
112 SET(cpPlugins_PROCESS_DIMS "@cpPlugins_PROCESS_DIMS@" CACHE STRING "Internal")
113 SET(cpPlugins_VISUAL_DIMS "@cpPlugins_VISUAL_DIMS@" CACHE STRING "Internal")
115 MARK_AS_ADVANCED(FORCE cpPlugins_NUMBER_OF_FILES)
116 MARK_AS_ADVANCED(FORCE cpPlugins_PROCESS_DIMS)
117 MARK_AS_ADVANCED(FORCE cpPlugins_VISUAL_DIMS)