"docker/git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "fe25f7a51d36e3702f961e198894580d83c4387b"
Commit 464bb701 authored by Jesse Beder's avatar Jesse Beder
Browse files

Applied patch to build and version a shared library

parent 781fb4d0
......@@ -4,6 +4,11 @@ project (YAML_CPP)
SET(CMAKE_CXX_FLAGS "-O2 -Wall -pedantic -Wextra")
set(YAML_CPP_VERSION_MAJOR "0")
set(YAML_CPP_VERSION_MINOR "1")
set(YAML_CPP_VERSION_PATCH "0")
set(YAML_CPP_VERSION "${YAML_CPP_VERSION_MAJOR}.${YAML_CPP_VERSION_MINOR}.${YAML_CPP_VERSION_PATCH}")
enable_testing()
if(WIN32)
......@@ -25,11 +30,15 @@ file(GLOB private_headers src/*.h)
file(GLOB sources src/*.cpp)
include_directories(${YAML_CPP_SOURCE_DIR}/include)
add_library(yaml-cpp
add_library(yaml-cpp SHARED
${public_headers}
${private_headers}
${sources}
)
set_target_properties(yaml-cpp PROPERTIES
VERSION "${YAML_CPP_VERSION}"
SOVERSION "${YAML_CPP_VERSION_MAJOR}.${YAML_CPP_VERSION_MINOR}"
)
install(TARGETS yaml-cpp ${_INSTALL_DESTINATIONS})
install(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment