]> Creatis software - crea.git/commitdiff
Fixed important bug in CREA_ADD_LIBRARY macro v0.2.0
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 27 Jan 2009 09:20:27 +0000 (09:20 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Tue, 27 Jan 2009 09:20:27 +0000 (09:20 +0000)
cmake/CREAMacro_AddLibrary.cmake

index 2aee01c4c3a5972cba51b7ee503479b826edeb56..f4aea4dcbd1f7528fd78a449aa83f01697d52ab5 100644 (file)
@@ -1,5 +1,5 @@
 # Creates and installs a library
-# Uses CREA_DYNMAIC_LIBRARY_EXPORT and CREA_INSTALL_LIBRARY
+# Uses CREA_DYNAMIC_LIBRARY_EXPORT and CREA_INSTALL_LIBRARY
 # hence the variables to be set for these are needed 
 # Additionnaly one needs to set :
 # ${LIBRARY_NAME}_HEADERS : the list of headers to install
@@ -34,11 +34,16 @@ MACRO(CREA_ADD_LIBRARY LIBRARY_NAME)
     FILES ${${LIBRARY_NAME}_HEADERS}
     DESTINATION ${${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS}
     )  
-       
+
+IF(WIN32)      
   INSTALL(
     TARGETS ${LIBRARY_NAME}
     DESTINATION bin)
-
+ELSE(WIN32)
+  INSTALL(
+    TARGETS ${LIBRARY_NAME}
+    DESTINATION lib)
+ENDIF(WIN32)
 
 ENDMACRO(CREA_ADD_LIBRARY)