Avoid installation of static libraries.

This commit is contained in:
Michal
2010-04-27 10:41:55 +02:00
parent f5f0052682
commit f3aeb6ae1c
2 changed files with 6 additions and 3 deletions

View File

@@ -14,7 +14,9 @@ set (RTENGINESOURCEFILES colortemp.cc curves.cc dcraw.cc gauss.cc iccstore.cc
add_library (rtengine ${RTENGINESOURCEFILES})
#It may be nice to store library version too
install (TARGETS rtengine DESTINATION ${LIBDIR})
IF (BUILD_SHARED_LIBS)
install (TARGETS rtengine DESTINATION ${LIBDIR})
ENDIF (BUILD_SHARED_LIBS)
set_target_properties (rtengine PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math -funroll-loops")

View File

@@ -8,5 +8,6 @@ ELSE (WIN32)
set_target_properties (rtexif PROPERTIES COMPILE_FLAGS "-O3 -ffast-math -fexpensive-optimizations -fPIC")
ENDIF (WIN32)
INSTALL(TARGETS rtexif DESTINATION ${LIBDIR})
IF (BUILD_SHARED_LIBS)
INSTALL(TARGETS rtexif DESTINATION ${LIBDIR})
ENDIF (BUILD_SHARED_LIBS)