Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ endforeach()
set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)
set(CMAKE_DEBUG_POSTFIX "_d")


option(BUILD_SHARED_LIBS "build with shared libraries" OFF)

find_package( OpenCV REQUIRED )

Expand Down
3 changes: 2 additions & 1 deletion library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source_group("Headers" FILES ${head})
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${PTHREADS_INCLUDE_DIR})

add_library(opencvblobslib STATIC ${cpp} ${head})
add_library(opencvblobslib ${cpp} ${head})

set_target_properties(opencvblobslib PROPERTIES
PUBLIC_HEADER "${head}")
Expand All @@ -16,6 +16,7 @@ install(TARGETS opencvblobslib
# IMPORTANT: Add the opencvblobslib library to the "export-set"
EXPORT opencvblobslibTargets
RUNTIME DESTINATION "${INSTALL_BIN_DIR}" COMPONENT bin
LIBRARY DESTINATION "${INSTALL_LIB_DIR}" COMPONENT lib
ARCHIVE DESTINATION "${INSTALL_LIB_DIR}" COMPONENT lib
PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}/opencvblobslib"
COMPONENT dev)
Expand Down