mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
some more fixes for the static library configuration
This commit is contained in:
parent
0de9c9fd3c
commit
9dfb15dbbd
7
3rdparty/lapack/CMakeLists.txt
vendored
7
3rdparty/lapack/CMakeLists.txt
vendored
@ -62,13 +62,8 @@ set_target_properties(${the_target}
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(NOT BUILD_SHARED_LIBS)
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
set_target_properties(${the_target}
|
|
||||||
PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
|
|
||||||
|
|
||||||
install(TARGETS ${the_target}
|
install(TARGETS ${the_target}
|
||||||
RUNTIME DESTINATION bin COMPONENT main
|
ARCHIVE DESTINATION share/opencv/3rdparty/lib COMPONENT main)
|
||||||
LIBRARY DESTINATION lib COMPONENT main
|
|
||||||
ARCHIVE DESTINATION lib COMPONENT main)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif() #android
|
endif() #android
|
||||||
|
6
3rdparty/libjasper/CMakeLists.txt
vendored
6
3rdparty/libjasper/CMakeLists.txt
vendored
@ -57,4 +57,10 @@ set_target_properties(${the_target}
|
|||||||
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib"
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
|
install(TARGETS ${the_target}
|
||||||
|
ARCHIVE DESTINATION share/opencv/3rdparty/lib COMPONENT main)
|
||||||
|
endif()
|
||||||
|
|
||||||
endif(ANDROID)#!android
|
endif(ANDROID)#!android
|
||||||
|
6
3rdparty/libjpeg/CMakeLists.txt
vendored
6
3rdparty/libjpeg/CMakeLists.txt
vendored
@ -47,4 +47,10 @@ set_target_properties(${the_target}
|
|||||||
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
||||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/3rdparty/lib
|
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/3rdparty/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
|
install(TARGETS ${the_target}
|
||||||
|
ARCHIVE DESTINATION share/opencv/3rdparty/lib COMPONENT main)
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()#android
|
endif()#android
|
||||||
|
6
3rdparty/libpng/CMakeLists.txt
vendored
6
3rdparty/libpng/CMakeLists.txt
vendored
@ -41,4 +41,10 @@ set_target_properties(${the_target}
|
|||||||
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib"
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
|
install(TARGETS ${the_target}
|
||||||
|
ARCHIVE DESTINATION share/opencv/3rdparty/lib COMPONENT main)
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()#android
|
endif()#android
|
||||||
|
5
3rdparty/libtiff/CMakeLists.txt
vendored
5
3rdparty/libtiff/CMakeLists.txt
vendored
@ -99,3 +99,8 @@ set_target_properties(${the_target}
|
|||||||
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib/"
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/3rdparty/lib/"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
|
install(TARGETS ${the_target}
|
||||||
|
ARCHIVE DESTINATION share/opencv/3rdparty/lib COMPONENT main)
|
||||||
|
endif()
|
||||||
|
4
3rdparty/zlib/CMakeLists.txt
vendored
4
3rdparty/zlib/CMakeLists.txt
vendored
@ -40,10 +40,8 @@ set_target_properties(${the_target}
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(NOT BUILD_SHARED_LIBS)
|
if(NOT BUILD_SHARED_LIBS)
|
||||||
set_target_properties(${the_target}
|
|
||||||
PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
|
|
||||||
install(TARGETS ${the_target}
|
install(TARGETS ${the_target}
|
||||||
ARCHIVE DESTINATION lib COMPONENT main)
|
ARCHIVE DESTINATION share/opencv/3rdparty/lib COMPONENT main)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endif(ANDROID)
|
endif(ANDROID)
|
||||||
|
@ -490,7 +490,7 @@ if(WITH_JASPER AND NOT JASPER_FOUND)
|
|||||||
set(JASPER_LIBRARIES libjasper)
|
set(JASPER_LIBRARIES libjasper)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message(STATUS "Graphic libraries: ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES} ${JASPER_LIBRARIES}")
|
#message(STATUS "Graphic libraries: ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES} ${JASPER_LIBRARIES}")
|
||||||
|
|
||||||
if(WITH_OPENEXR)
|
if(WITH_OPENEXR)
|
||||||
include(OpenCVFindOpenEXR.cmake)
|
include(OpenCVFindOpenEXR.cmake)
|
||||||
|
@ -85,6 +85,8 @@ IF (NOT @OPENCV_BUILD_SHARED_LIB@)
|
|||||||
LINK_DIRECTORIES(@CMAKE_LIB_DIRS_CONFIGCMAKE@/../3rdparty/lib)
|
LINK_DIRECTORIES(@CMAKE_LIB_DIRS_CONFIGCMAKE@/../3rdparty/lib)
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
LINK_DIRECTORIES(@CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE@/3rdparty/lib)
|
LINK_DIRECTORIES(@CMAKE_BASE_INCLUDE_DIRS_CONFIGCMAKE@/3rdparty/lib)
|
||||||
|
else()
|
||||||
|
LINK_DIRECTORIES(@CMAKE_LIB_DIRS_CONFIGCMAKE@/../share/opencv/3rdparty/lib)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(OpenCV_LIBS @OPENCV_LINKER_LIBS@ @IPP_LIBS@ @HIGHGUI_LIBRARIES@ ${OpenCV_LIBS})
|
set(OpenCV_LIBS @OPENCV_LINKER_LIBS@ @IPP_LIBS@ @HIGHGUI_LIBRARIES@ ${OpenCV_LIBS})
|
||||||
|
Loading…
Reference in New Issue
Block a user