Commit aa0a3a415c3e07dfc907373671e472dd5ac830fe
1 parent
81bbdeab
install
Showing
1 changed file
with
8 additions
and
0 deletions
src/CMakeLists.txt
| ... | ... | @@ -25,3 +25,11 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall") |
| 25 | 25 | add_library(cxxopts SHARED cxxopts.cpp) |
| 26 | 26 | |
| 27 | 27 | target_link_libraries(example cxxopts) |
| 28 | + | |
| 29 | +set_target_properties(cxxopts PROPERTIES | |
| 30 | + SOVERSION 0 | |
| 31 | + VERSION 0.0.1 | |
| 32 | +) | |
| 33 | + | |
| 34 | +install(TARGETS cxxopts LIBRARY DESTINATION lib) | |
| 35 | +install(FILES cxxopts.hpp DESTINATION include) | ... | ... |