## ====================
## == Find libraries ==
## ====================
-SET(
- _all_libs
- "@cpPlugins_tinyxml2_LIB@"
- "@cpPlugins_QCustomPlot_LIB@"
- "@cpExtensions_LIB@"
- "@cpPlugins_LIB@"
- "@cpBaseQtApplication_LIB@"
- "@cpPlugins_Instances@"
- )
-SET(cpPlugins_Instances "@cpPlugins_Instances@")
+
+SET(cpPlugins_BaseLibraries "@cpPlugins_BaseLibraries@" CACHE STRING "Internal")
+SET(cpPlugins_Instances "@cpPlugins_Instances@" CACHE STRING "Internal")
+MARK_AS_ADVANCED(FORCE cpPlugins_BaseLibraries)
+MARK_AS_ADVANCED(FORCE cpPlugins_Instances)
+
+SET(_all_libs ${cpPlugins_BaseLibraries} ${cpPlugins_Instances})
SET(_l_locations)
FOREACH(_l ${_all_libs})
LINK_DIRECTORIES(${_l_locations})
ENDIF(_l_locations)
+## ==============================
+## == Find include directories ==
+## ==============================
+
+#SET(cpPlugins_All_Headers "@cpPlugins_All_Headers@" CACHE STRING "Internal")
+#MARK_AS_ADVANCED(FORCE cpPlugins_All_Headers)
+#SET(_header_paths
+# "@PROJECT_SOURCE_DIR@/lib"
+# "@PROJECT_BINARY_DIR@/lib"
+# "@PROJECT_SOURCE_DIR@/lib/Instances"
+# "@PROJECT_BINARY_DIR@/lib/Instances"
+# "@CMAKE_INSTALL_PREFIX@/include"
+# )
+#FOREACH(_h ${cpPlugins_All_Headers})
+# GET_FILENAME_COMPONENT(_h_name ${_h} NAME)
+# GET_FILENAME_COMPONENT(_h_dir ${_h} DIRECTORY)
+# FIND_PATH(
+# _loc_${_h_name} ${_h_name}
+# HINTS
+# ${_header_paths}
+# ${_h_dir}
+# )
+# IF(_loc_${_h_name})
+# LIST(APPEND _header_paths ${_loc_${_h_name}})
+# LIST(REMOVE_DUPLICATES _header_paths)
+# ELSE(_loc_${_h_name})
+# MESSAGE(FATAL_ERROR "Please configure where is ${_h_name}")
+# ENDIF(_loc_${_h_name})
+#ENDFOREACH(_h ${cpPlugins_All_Headers})
+#MESSAGE(STATUS ${_header_paths})
+
+## TODO: this is not completely correct!!!
+INCLUDE_DIRECTORIES(
+ @CMAKE_INSTALL_PREFIX@/include
+ @CMAKE_INSTALL_PREFIX@/include/cpPlugins/Itk2Vtk
+ @CMAKE_INSTALL_PREFIX@/include/cpPlugins/Instances
+ @PROJECT_SOURCE_DIR@
+ @PROJECT_BINARY_DIR@
+ @PROJECT_SOURCE_DIR@/lib
+ @PROJECT_BINARY_DIR@/lib
+ @PROJECT_SOURCE_DIR@/lib/Instances
+ @PROJECT_BINARY_DIR@/lib/Instances
+ )
+
## ============================
## == Find bash applications ==
## ============================
SET(
_exec_programs
- "@cpPlugins_bash_BuildInstances_APP@"
+ "@cpPlugins_bash_CreateRealConfig_APP@"
+ "@cpPlugins_bash_CreateInstances_APP@"
+ "@cpPlugins_bash_CreateDemanglers_APP@"
+ "@cpPlugins_bash_CreatePlugins_APP@"
"@cpPlugins_bash_HostCreator_APP@"
)
+
FOREACH(_prog ${_exec_programs})
IF(MSVC)
FIND_PROGRAM(
MARK_AS_ADVANCED(FORCE ${_prog}_APP)
ENDFOREACH(_prog)
-## =========================
-## == Include directories ==
-## =========================
-
-## TODO: this is not completely correct!!!
-INCLUDE_DIRECTORIES(
- @CMAKE_INSTALL_PREFIX@/include
- @CMAKE_INSTALL_PREFIX@/include/cpPlugins/Itk2Vtk
- @CMAKE_INSTALL_PREFIX@/include/cpPlugins/Instances
- @PROJECT_SOURCE_DIR@
- @PROJECT_BINARY_DIR@
- @PROJECT_SOURCE_DIR@/lib
- @PROJECT_BINARY_DIR@/lib
- @PROJECT_SOURCE_DIR@/lib/Itk2Vtk
- @PROJECT_BINARY_DIR@/lib/Itk2Vtk
- @PROJECT_SOURCE_DIR@/lib/Instances
- @PROJECT_BINARY_DIR@/lib/Instances
- )
-
## ==========================
## == Configuration values ==
## ==========================
-SET(cpPlugins_NUMBER_OF_FILES @cpPlugins_NUMBER_OF_FILES@ CACHE STRING "Internal")
-SET(cpPlugins_INTEGER_TYPES @cpPlugins_INTEGER_TYPES@ CACHE STRING "Internal")
-SET(cpPlugins_REAL_TYPES @cpPlugins_REAL_TYPES@ CACHE STRING "Internal")
-SET(cpPlugins_PROCESS_DIMENSIONS @cpPlugins_PROCESS_DIMENSIONS@ CACHE STRING "Internal")
-SET(cpPlugins_VISUAL_DIMENSIONS @cpPlugins_VISUAL_DIMENSIONS@ CACHE STRING "Internal")
+SET(cpPlugins_CONFIG_NUMBER_OF_FILES @cpPlugins_CONFIG_NUMBER_OF_FILES@ CACHE STRING "Internal")
+SET(cpPlugins_CONFIG_INTEGER_TYPES @cpPlugins_CONFIG_INTEGER_TYPES@ CACHE STRING "Internal")
+SET(cpPlugins_CONFIG_REAL_TYPES @cpPlugins_CONFIG_REAL_TYPES@ CACHE STRING "Internal")
+SET(cpPlugins_CONFIG_PROCESS_DIMENSIONS @cpPlugins_CONFIG_PROCESS_DIMENSIONS@ CACHE STRING "Internal")
+SET(cpPlugins_CONFIG_VISUAL_DIMENSIONS @cpPlugins_CONFIG_VISUAL_DIMENSIONS@ CACHE STRING "Internal")
-MARK_AS_ADVANCED(FORCE cpPlugins_NUMBER_OF_FILES)
-MARK_AS_ADVANCED(FORCE cpPlugins_INTEGER_TYPES)
-MARK_AS_ADVANCED(FORCE cpPlugins_REAL_TYPES)
-MARK_AS_ADVANCED(FORCE cpPlugins_PROCESS_DIMENSIONS)
-MARK_AS_ADVANCED(FORCE cpPlugins_VISUAL_DIMENSIONS)
+MARK_AS_ADVANCED(FORCE cpPlugins_CONFIG_NUMBER_OF_FILES)
+MARK_AS_ADVANCED(FORCE cpPlugins_CONFIG_INTEGER_TYPES)
+MARK_AS_ADVANCED(FORCE cpPlugins_CONFIG_REAL_TYPES)
+MARK_AS_ADVANCED(FORCE cpPlugins_CONFIG_PROCESS_DIMENSIONS)
+MARK_AS_ADVANCED(FORCE cpPlugins_CONFIG_VISUAL_DIMENSIONS)
## eof - $RCSfile$