Force static privately used subdir libraries (closes #5481)
This commit is contained in:
parent
984696ed99
commit
0b2b3dc974
@ -11,7 +11,7 @@ include_directories(${EXTRA_INCDIR}
|
|||||||
${LCMS_INCLUDE_DIRS}
|
${LCMS_INCLUDE_DIRS}
|
||||||
${LENSFUN_INCLUDE_DIRS}
|
${LENSFUN_INCLUDE_DIRS}
|
||||||
${RSVG_INCLUDE_DIRS}
|
${RSVG_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
link_directories("${PROJECT_SOURCE_DIR}/rtexif"
|
link_directories("${PROJECT_SOURCE_DIR}/rtexif"
|
||||||
${EXPAT_LIBRARY_DIRS}
|
${EXPAT_LIBRARY_DIRS}
|
||||||
@ -25,25 +25,22 @@ link_directories("${PROJECT_SOURCE_DIR}/rtexif"
|
|||||||
${LCMS_LIBRARY_DIRS}
|
${LCMS_LIBRARY_DIRS}
|
||||||
${LENSFUN_LIBRARY_DIRS}
|
${LENSFUN_LIBRARY_DIRS}
|
||||||
${RSVG_LIBRARY_DIRS}
|
${RSVG_LIBRARY_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CAMCONSTSFILE "camconst.json")
|
set(CAMCONSTSFILE "camconst.json")
|
||||||
|
|
||||||
set(RTENGINESOURCEFILES
|
set(RTENGINESOURCEFILES
|
||||||
badpixels.cc
|
|
||||||
CA_correct_RT.cc
|
|
||||||
capturesharpening.cc
|
|
||||||
EdgePreservingDecomposition.cc
|
|
||||||
FTblockDN.cc
|
|
||||||
PF_correct_RT.cc
|
|
||||||
ahd_demosaic_RT.cc
|
ahd_demosaic_RT.cc
|
||||||
amaze_demosaic_RT.cc
|
amaze_demosaic_RT.cc
|
||||||
cJSON.c
|
badpixels.cc
|
||||||
|
CA_correct_RT.cc
|
||||||
calc_distort.cc
|
calc_distort.cc
|
||||||
camconst.cc
|
camconst.cc
|
||||||
|
capturesharpening.cc
|
||||||
cfa_linedn_RT.cc
|
cfa_linedn_RT.cc
|
||||||
ciecam02.cc
|
ciecam02.cc
|
||||||
cieimage.cc
|
cieimage.cc
|
||||||
|
cJSON.c
|
||||||
clutstore.cc
|
clutstore.cc
|
||||||
color.cc
|
color.cc
|
||||||
colortemp.cc
|
colortemp.cc
|
||||||
@ -60,14 +57,19 @@ set(RTENGINESOURCEFILES
|
|||||||
dual_demosaic_RT.cc
|
dual_demosaic_RT.cc
|
||||||
dynamicprofile.cc
|
dynamicprofile.cc
|
||||||
eahd_demosaic.cc
|
eahd_demosaic.cc
|
||||||
|
EdgePreservingDecomposition.cc
|
||||||
fast_demo.cc
|
fast_demo.cc
|
||||||
ffmanager.cc
|
ffmanager.cc
|
||||||
filmnegativeproc.cc
|
filmnegativeproc.cc
|
||||||
filmnegativethumb.cc
|
filmnegativethumb.cc
|
||||||
flatcurves.cc
|
flatcurves.cc
|
||||||
|
FTblockDN.cc
|
||||||
|
gamutwarning.cc
|
||||||
gauss.cc
|
gauss.cc
|
||||||
green_equil_RT.cc
|
green_equil_RT.cc
|
||||||
|
guidedfilter.cc
|
||||||
hilite_recon.cc
|
hilite_recon.cc
|
||||||
|
histmatching.cc
|
||||||
hphd_demosaic_RT.cc
|
hphd_demosaic_RT.cc
|
||||||
iccjpeg.cc
|
iccjpeg.cc
|
||||||
iccstore.cc
|
iccstore.cc
|
||||||
@ -82,10 +84,15 @@ set(RTENGINESOURCEFILES
|
|||||||
improcfun.cc
|
improcfun.cc
|
||||||
impulse_denoise.cc
|
impulse_denoise.cc
|
||||||
init.cc
|
init.cc
|
||||||
|
ipdehaze.cc
|
||||||
iplab2rgb.cc
|
iplab2rgb.cc
|
||||||
|
iplabregions.cc
|
||||||
|
iplocalcontrast.cc
|
||||||
ipresize.cc
|
ipresize.cc
|
||||||
ipretinex.cc
|
ipretinex.cc
|
||||||
|
ipshadowshighlights.cc
|
||||||
ipsharpen.cc
|
ipsharpen.cc
|
||||||
|
ipsoftlight.cc
|
||||||
iptransform.cc
|
iptransform.cc
|
||||||
ipvibrance.cc
|
ipvibrance.cc
|
||||||
ipwavelet.cc
|
ipwavelet.cc
|
||||||
@ -93,8 +100,8 @@ set(RTENGINESOURCEFILES
|
|||||||
jpeg_ijg/jpeg_memsrc.cc
|
jpeg_ijg/jpeg_memsrc.cc
|
||||||
klt/convolve.cc
|
klt/convolve.cc
|
||||||
klt/error.cc
|
klt/error.cc
|
||||||
klt/klt.cc
|
|
||||||
klt/klt_util.cc
|
klt/klt_util.cc
|
||||||
|
klt/klt.cc
|
||||||
klt/pnmio.cc
|
klt/pnmio.cc
|
||||||
klt/pyramid.cc
|
klt/pyramid.cc
|
||||||
klt/selectGoodFeatures.cc
|
klt/selectGoodFeatures.cc
|
||||||
@ -103,8 +110,11 @@ set(RTENGINESOURCEFILES
|
|||||||
klt/writeFeatures.cc
|
klt/writeFeatures.cc
|
||||||
labimage.cc
|
labimage.cc
|
||||||
lcp.cc
|
lcp.cc
|
||||||
|
lj92.c
|
||||||
loadinitial.cc
|
loadinitial.cc
|
||||||
myfile.cc
|
myfile.cc
|
||||||
|
pdaflinesfilter.cc
|
||||||
|
PF_correct_RT.cc
|
||||||
pipettebuffer.cc
|
pipettebuffer.cc
|
||||||
pixelshift.cc
|
pixelshift.cc
|
||||||
previewimage.cc
|
previewimage.cc
|
||||||
@ -116,27 +126,17 @@ set(RTENGINESOURCEFILES
|
|||||||
rcd_demosaic.cc
|
rcd_demosaic.cc
|
||||||
refreshmap.cc
|
refreshmap.cc
|
||||||
rt_algo.cc
|
rt_algo.cc
|
||||||
|
rtlensfun.cc
|
||||||
rtthumbnail.cc
|
rtthumbnail.cc
|
||||||
shmap.cc
|
shmap.cc
|
||||||
simpleprocess.cc
|
simpleprocess.cc
|
||||||
slicer.cc
|
slicer.cc
|
||||||
stdimagesource.cc
|
stdimagesource.cc
|
||||||
utils.cc
|
|
||||||
rtlensfun.cc
|
|
||||||
tmo_fattal02.cc
|
tmo_fattal02.cc
|
||||||
iplocalcontrast.cc
|
utils.cc
|
||||||
histmatching.cc
|
|
||||||
pdaflinesfilter.cc
|
|
||||||
gamutwarning.cc
|
|
||||||
ipshadowshighlights.cc
|
|
||||||
xtrans_demosaic.cc
|
|
||||||
vng4_demosaic_RT.cc
|
vng4_demosaic_RT.cc
|
||||||
ipsoftlight.cc
|
xtrans_demosaic.cc
|
||||||
guidedfilter.cc
|
)
|
||||||
ipdehaze.cc
|
|
||||||
iplabregions.cc
|
|
||||||
lj92.c
|
|
||||||
)
|
|
||||||
|
|
||||||
if(LENSFUN_HAS_LOAD_DIRECTORY)
|
if(LENSFUN_HAS_LOAD_DIRECTORY)
|
||||||
set_source_files_properties(rtlensfun.cc PROPERTIES COMPILE_DEFINITIONS RT_LENSFUN_HAS_LOAD_DIRECTORY)
|
set_source_files_properties(rtlensfun.cc PROPERTIES COMPILE_DEFINITIONS RT_LENSFUN_HAS_LOAD_DIRECTORY)
|
||||||
@ -150,21 +150,22 @@ if(NOT WITH_SYSTEM_KLT)
|
|||||||
set(RTENGINESOURCEFILES ${RTENGINESOURCEFILES}
|
set(RTENGINESOURCEFILES ${RTENGINESOURCEFILES}
|
||||||
klt/convolve.cc
|
klt/convolve.cc
|
||||||
klt/error.cc
|
klt/error.cc
|
||||||
klt/klt.cc
|
|
||||||
klt/klt_util.cc
|
klt/klt_util.cc
|
||||||
|
klt/klt.cc
|
||||||
klt/pnmio.cc
|
klt/pnmio.cc
|
||||||
klt/pyramid.cc
|
klt/pyramid.cc
|
||||||
klt/selectGoodFeatures.cc
|
klt/selectGoodFeatures.cc
|
||||||
klt/storeFeatures.cc
|
klt/storeFeatures.cc
|
||||||
klt/trackFeatures.cc
|
klt/trackFeatures.cc
|
||||||
klt/writeFeatures.cc
|
klt/writeFeatures.cc
|
||||||
)
|
)
|
||||||
set(KLT_LIBRARIES)
|
set(KLT_LIBRARIES)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}")
|
include_directories(BEFORE "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
|
|
||||||
add_library(rtengine ${RTENGINESOURCEFILES})
|
add_library(rtengine STATIC ${RTENGINESOURCEFILES})
|
||||||
|
|
||||||
add_dependencies(rtengine UpdateInfo)
|
add_dependencies(rtengine UpdateInfo)
|
||||||
|
|
||||||
# It may be nice to store library version too
|
# It may be nice to store library version too
|
||||||
@ -190,6 +191,6 @@ target_link_libraries(rtengine rtexif
|
|||||||
${ZLIB_LIBRARIES}
|
${ZLIB_LIBRARIES}
|
||||||
${LENSFUN_LIBRARIES}
|
${LENSFUN_LIBRARIES}
|
||||||
${RSVG_LIBRARIES}
|
${RSVG_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
install(FILES ${CAMCONSTSFILE} DESTINATION "${DATADIR}" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
|
install(FILES ${CAMCONSTSFILE} DESTINATION "${DATADIR}" PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
|
||||||
|
@ -1,4 +1,16 @@
|
|||||||
add_library(rtexif rtexif.cc stdattribs.cc nikonattribs.cc canonattribs.cc pentaxattribs.cc fujiattribs.cc sonyminoltaattribs.cc olympusattribs.cc kodakattribs.cc panasonicattribs.cc)
|
add_library(rtexif STATIC
|
||||||
|
canonattribs.cc
|
||||||
|
fujiattribs.cc
|
||||||
|
kodakattribs.cc
|
||||||
|
nikonattribs.cc
|
||||||
|
olympusattribs.cc
|
||||||
|
panasonicattribs.cc
|
||||||
|
pentaxattribs.cc
|
||||||
|
rtexif.cc
|
||||||
|
sonyminoltaattribs.cc
|
||||||
|
stdattribs.cc
|
||||||
|
)
|
||||||
|
|
||||||
add_dependencies(rtexif UpdateInfo)
|
add_dependencies(rtexif UpdateInfo)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user