]> Creatis software - cpPlugins.git/blobdiff - cmake/cpPluginsConfig.cmake.in
Moved to version 1.0
[cpPlugins.git] / cmake / cpPluginsConfig.cmake.in
index e8efd6d2851c0f51d883887ff9e6073459a031ab..ecbdaa4fc6af22d194cbe35d6b6d20df6eef0d84 100644 (file)
@@ -1,49 +1,33 @@
-# ===================================
-# -- Some configurations variables --
-# ===================================
-
-SET(cpPlugins_with_QT4 "@QT4_FOUND@")
-
-# =========================
-# -- Include directories --
-# =========================
-
-INCLUDE_DIRECTORIES(
-  @PROJECT_SOURCE_DIR@/lib
-  @PROJECT_SOURCE_DIR@/lib/third_party
-  @PROJECT_SOURCE_DIR@/lib/third_party/ItkVtkGlue
-  @PROJECT_BINARY_DIR@/lib
-  @PROJECT_BINARY_DIR@/lib/third_party
-  @PROJECT_BINARY_DIR@/lib/third_party/ItkVtkGlue
-  @CMAKE_INSTALL_PREFIX@/include
-  @CMAKE_INSTALL_PREFIX@/include/third_party
-  @CMAKE_INSTALL_PREFIX@/include/third_party/ItkVtkGlue
+## == Some general configuration
+include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgDefinitions.cmake)
+include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgFunctions.cmake)
+set(
+  cpPlugins_INSTALL_FILE
+  @CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgInstallCommands.cmake
   )
-
-# =========================
-# -- Library directories --
-# =========================
-
-IF(MSVC)
-  LINK_DIRECTORIES(
-    @PROJECT_BINARY_DIR@/$(ConfigurationName)
-    @CMAKE_INSTALL_PREFIX@/bin
-    @CMAKE_INSTALL_PREFIX@/lib
-    )
-ELSE(MSVC)
-  LINK_DIRECTORIES(
-    @PROJECT_BINARY_DIR@
-    @CMAKE_INSTALL_PREFIX@/bin
-    @CMAKE_INSTALL_PREFIX@/lib
+## == Automatically generated commands
+@PACKAGE_INIT@
+
+## == Include targets file
+set(_targets "${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
+if(EXISTS "${_targets}")
+  include("${_targets}")
+  check_required_components("@PROJECT_NAME@")
+endif(EXISTS "${_targets}")
+
+## == Import bash applications
+set(
+  _bash
+  ExecutePipeline
+  HostCreator
+  MOC
+  )
+foreach(_b ${_bash})
+  add_executable(cpPlugins_${_b} IMPORTED)
+  set_property(
+    TARGET cpPlugins_${_b}
+    PROPERTY IMPORTED_LOCATION @CMAKE_INSTALL_PREFIX@/bin/cpPlugins_${_b}
     )
-ENDIF(MSVC)
-
-# ===================
-# -- Library names --
-# ===================
-
-SET(cpPlugins_Interface_LIBRARY cpPlugins_Interface)
-SET(cpPlugins_Extensions_LIBRARY cpPlugins_Extensions)
-SET(cpPlugins_LIBRARY cpPlugins)
+endforeach(_b)
 
 ## eof - $RCSfile$