diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d07c999..4dd82f4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -25,3 +25,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") add_library(cxxopts SHARED cxxopts.cpp) target_link_libraries(example cxxopts) + +set_target_properties(cxxopts PROPERTIES + SOVERSION 0 + VERSION 0.0.1 +) + +install(TARGETS cxxopts LIBRARY DESTINATION lib) +install(FILES cxxopts.hpp DESTINATION include)