We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2987f0 commit 050238cCopy full SHA for 050238c
CMakeLists.txt
@@ -1,12 +1,15 @@
1
cmake_minimum_required(VERSION 3.5)
2
-project(pystring CXX)
+project(pystring LANGUAGES CXX VERSION 1.1.4)
3
4
option (BUILD_SHARED_LIBS "Build shared libraries (set to OFF to build static libs)" ON)
5
6
add_library(pystring
7
pystring.cpp
8
pystring.h
9
)
10
+set_target_properties(pystring PROPERTIES
11
+ VERSION ${PROJECT_VERSION}
12
+)
13
14
add_executable (pystring_test test.cpp)
15
TARGET_LINK_LIBRARIES (pystring_test pystring)
@@ -20,7 +23,7 @@ install(TARGETS pystring
20
23
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
21
24
22
25
install (FILES pystring.h
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
26
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
27
COMPONENT developer
28
29
0 commit comments