From: jean-pierre roux Date: Tue, 27 Jan 2009 09:20:27 +0000 (+0000) Subject: Fixed important bug in CREA_ADD_LIBRARY macro X-Git-Tag: v0.2.0 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=79a1c3331210ed4bbd753afe1ed6c43a41ad732e;hp=7445d11c4bb61fb6d5340625493760ff199c0f0e;p=crea.git Fixed important bug in CREA_ADD_LIBRARY macro --- diff --git a/cmake/CREAMacro_AddLibrary.cmake b/cmake/CREAMacro_AddLibrary.cmake index 2aee01c..f4aea4d 100644 --- a/cmake/CREAMacro_AddLibrary.cmake +++ b/cmake/CREAMacro_AddLibrary.cmake @@ -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)