]> Creatis software - FrontAlgorithms.git/blobdiff - cmake/FrontAlgorithmsConfig.cmake.in
Now ported to macosx and easier to configure on win32... hopefully
[FrontAlgorithms.git] / cmake / FrontAlgorithmsConfig.cmake.in
index da3d3e82c49033a80256660c7222e7cc81ec253b..80869c4623b36193d8cd33a85d6c754665f7ac15 100644 (file)
@@ -1,43 +1,27 @@
-FIND_PATH(
-  FrontAlgorithms_INCLUDE_DIR1
-  fpa/Base/Algorithm.h
-  PATHS
-  /usr/include
-  /usr/local/include
-  @PROJECT_SOURCE_DIR@/lib
-  @PROJECT_BINARY_DIR@/lib
-  @CMAKE_INSTALL_PREFIX@/include
-  )
+# =========================
+# -- Include directories --
+# =========================
 
-FIND_PATH(
-  FrontAlgorithms_INCLUDE_DIR2
-  fpa/FrontAlgorithms_Export.h
-  PATHS
-  /usr/include
-  /usr/local/include
+INCLUDE_DIRECTORIES(
   @PROJECT_SOURCE_DIR@/lib
   @PROJECT_BINARY_DIR@/lib
   @CMAKE_INSTALL_PREFIX@/include
   )
 
-INCLUDE_DIRECTORIES(
-  ${FrontAlgorithms_INCLUDE_DIR1}
-  ${FrontAlgorithms_INCLUDE_DIR2}
-  )
+# =========================
+# -- Library directories --
+# =========================
 
-FIND_LIBRARY(
-  FrontAlgorithms_LIBRARY_NAME
-  FrontAlgorithms
-  PATHS
-  /usr/lib
-  /usr/local/lib
-  @PROJECT_BINARY_DIR@
+LINK_DIRECTORIES(
+  @PROJECT_SOURCE_DIR@/lib
+  @PROJECT_BINARY_DIR@/lib
   @CMAKE_INSTALL_PREFIX@/lib
   )
 
-SET(
-  FrontAlgorithms_LIBRARIES
-  ${FrontAlgorithms_LIBRARY_NAME}
-  )
+# ===================
+# -- Library names --
+# ===================
+
+SET(FrontAlgorithms_LIBRARY FrontAlgorithms)
 
 ## eof - $RCSfile$