File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ endforeach()
2727set (CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
2828set (CMAKE_DEBUG_POSTFIX "_d" )
2929
30-
30+ option ( BUILD_SHARED_LIBS "build with shared libraries" OFF )
3131
3232find_package ( OpenCV REQUIRED )
3333
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ source_group("Headers" FILES ${head})
77include_directories (${OpenCV_INCLUDE_DIRS} )
88include_directories (${PTHREADS_INCLUDE_DIR} )
99
10- add_library (opencvblobslib STATIC ${cpp} ${head} )
10+ add_library (opencvblobslib ${cpp} ${head} )
1111
1212set_target_properties (opencvblobslib PROPERTIES
1313 PUBLIC_HEADER "${head} " )
@@ -16,6 +16,7 @@ install(TARGETS opencvblobslib
1616 # IMPORTANT: Add the opencvblobslib library to the "export-set"
1717 EXPORT opencvblobslibTargets
1818 RUNTIME DESTINATION "${INSTALL_BIN_DIR} " COMPONENT bin
19+ LIBRARY DESTINATION "${INSTALL_LIB_DIR} " COMPONENT lib
1920 ARCHIVE DESTINATION "${INSTALL_LIB_DIR} " COMPONENT lib
2021 PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR} /opencvblobslib"
2122 COMPONENT dev)
You can’t perform that action at this time.
0 commit comments