]> Creatis software - cpPlugins.git/blobdiff - lib/third_party/CMakeLists.txt
Now ported to macosx and easier to configure on win32... hopefully
[cpPlugins.git] / lib / third_party / CMakeLists.txt
index 1dd3f14d9c6ad2fa5a477af051144edd1e7c093e..af1194bf6509c1e48f15f82a7ae9c2324cf632df 100644 (file)
@@ -2,4 +2,38 @@ SUBDIRS(
   Pluma
   )
 
+## ========================
+## -- Installation rules --
+## ========================
+IF(WIN32 OR APPLE)
+  SET(
+    local_install_dirs
+    ItkVtkGlue
+    glext
+    )
+ELSE()
+  SET(
+    local_install_dirs
+    ItkVtkGlue
+    )
+ENDIF(WIN32 OR APPLE)
+
+FOREACH(dir ${local_install_dirs})
+  INSTALL(
+    DIRECTORY ${dir}
+    DESTINATION include/cpPlugins/third_party
+    FILES_MATCHING PATTERN "*.h"
+    )
+  INSTALL(
+    DIRECTORY ${dir}
+    DESTINATION include/cpPlugins/third_party
+    FILES_MATCHING PATTERN "*.hxx"
+    )
+  INSTALL(
+    DIRECTORY ${dir}
+    DESTINATION include/cpPlugins/third_party
+    FILES_MATCHING PATTERN "*.hpp"
+    )
+ENDFOREACH(dir)
+
 ## eof - $RCSfile$