File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.5)
2- project (pystring CXX)
2+ project (pystring LANGUAGES CXX VERSION 1.1.4 )
33
44option (BUILD_SHARED_LIBS "Build shared libraries (set to OFF to build static libs)" ON )
55
66add_library (pystring
77 pystring.cpp
88 pystring.h
99)
10+ set_target_properties (pystring PROPERTIES
11+ VERSION ${PROJECT_VERSION}
12+ SOVERSION ${PROJECT_VERSION_MAJOR}
13+ )
1014
1115add_executable (pystring_test test .cpp)
1216TARGET_LINK_LIBRARIES (pystring_test pystring)
@@ -20,7 +24,7 @@ install(TARGETS pystring
2024 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
2125)
2226install (FILES pystring.h
23- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} / ${PROJECT_NAME}
27+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
2428 COMPONENT developer
2529)
2630
You can’t perform that action at this time.
0 commit comments