# 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
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)