Added patch for issue #79; cmake linking when build shared libraries enabled - patch from guillaume85
This commit is contained in:
parent
5643ab60e0
commit
351ecf9049
@ -12,13 +12,9 @@ set (RTENGINESOURCEFILES colortemp.cc curves.cc dcraw.cc gauss.cc iccstore.cc
|
||||
stdimagesource.cc myfile.cc iccjpeg.c hlmultipliers.cc improccoordinator.cc
|
||||
processingjob.cc rtthumbnail.cc utils.cc bilateral2.cc)
|
||||
|
||||
if (BUILD_SHARED)
|
||||
add_library (rtengine SHARED ${RTENGINESOURCEFILES})
|
||||
# it may be nice to store library version too
|
||||
install (TARGETS rtengine DESTINATION ${LIBDIR})
|
||||
else (BUILD_SHARED)
|
||||
add_library (rtengine STATIC ${RTENGINESOURCEFILES})
|
||||
endif (BUILD_SHARED)
|
||||
add_library (rtengine ${RTENGINESOURCEFILES})
|
||||
#It may be nice to store library version too
|
||||
install (TARGETS rtengine DESTINATION ${LIBDIR})
|
||||
|
||||
set_target_properties (rtengine PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -ffast-math -funroll-loops")
|
||||
|
||||
|
@ -7,4 +7,6 @@ IF (WIN32)
|
||||
ELSE (WIN32)
|
||||
set_target_properties (rtexif PROPERTIES COMPILE_FLAGS "-O3 -ffast-math -fexpensive-optimizations -fPIC")
|
||||
ENDIF (WIN32)
|
||||
|
||||
|
||||
INSTALL(TARGETS rtexif DESTINATION ${LIBDIR})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user