some more fixes for the static library configuration

This commit is contained in:
Vadim Pisarevsky
2010-12-05 02:10:59 +00:00
parent 0de9c9fd3c
commit 9dfb15dbbd
8 changed files with 28 additions and 10 deletions

View File

@@ -62,13 +62,8 @@ set_target_properties(${the_target}
)
if(NOT BUILD_SHARED_LIBS)
set_target_properties(${the_target}
PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
install(TARGETS ${the_target}
RUNTIME DESTINATION bin COMPONENT main
LIBRARY DESTINATION lib COMPONENT main
ARCHIVE DESTINATION lib COMPONENT main)
ARCHIVE DESTINATION share/opencv/3rdparty/lib COMPONENT main)
endif()
endif() #android