File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ find_package( OpenSSL )
25
25
find_package ( Threads )
26
26
set (CMAKE_VERBOSE_MAKEFILE true )
27
27
28
+ set (BUILD_SHARED_LIBS ON )
29
+ set (CPPNETLIB_VERSION_MAJOR 0 ) # MUST bump this whenever we make ABI-incompatible changes
30
+ set (CPPNETLIB_VERSION_MINOR 10 )
31
+ set (CPPNETLIB_VERSION_PATCH 1 )
32
+ set (CPPNETLIB_VERSION_STRING ${CPPNETLIB_VERSION_MAJOR} .${CPPNETLIB_VERSION_MINOR}.${CPPNETLIB_VERSION_PATCH} )
33
+
28
34
if (CMAKE_BUILD_TYPE MATCHES Debug )
29
35
add_definitions (-DBOOST_NETWORK_DEBUG )
30
36
endif ()
@@ -60,3 +66,5 @@ if (MSVC)
60
66
endif ()
61
67
62
68
enable_testing ()
69
+
70
+ install (DIRECTORY boost DESTINATION "include" )
Original file line number Diff line number Diff line change @@ -10,9 +10,18 @@ include_directories(${CPP-NETLIB_SOURCE_DIR})
10
10
11
11
set (CPP-NETLIB_URI_SRCS uri/uri.cpp uri/schemes.cpp )
12
12
add_library (cppnetlib-uri ${CPP-NETLIB_URI_SRCS} )
13
+ set_target_properties (cppnetlib-uri
14
+ PROPERTIES VERSION ${CPPNETLIB_VERSION_STRING} SOVERSION ${CPPNETLIB_VERSION_MAJOR} )
15
+ install (TARGETS cppnetlib-uri DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE} )
13
16
14
17
set (CPP-NETLIB_HTTP_SERVER_SRCS server_request_parsers_impl.cpp )
15
18
add_library (cppnetlib-server-parsers ${CPP-NETLIB_HTTP_SERVER_SRCS} )
19
+ set_target_properties (cppnetlib-server-parsers
20
+ PROPERTIES VERSION ${CPPNETLIB_VERSION_STRING} SOVERSION ${CPPNETLIB_VERSION_MAJOR} )
21
+ install (TARGETS cppnetlib-server-parsers DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE} )
16
22
17
23
set (CPP-NETLIB_HTTP_CLIENT_SRCS client.cpp )
18
24
add_library (cppnetlib-client-connections ${CPP-NETLIB_HTTP_CLIENT_SRCS} )
25
+ set_target_properties (cppnetlib-client-connections
26
+ PROPERTIES VERSION ${CPPNETLIB_VERSION_STRING} SOVERSION ${CPPNETLIB_VERSION_MAJOR} )
27
+ install (TARGETS cppnetlib-client-connections DESTINATION lib/${CMAKE_LIBRARY_ARCHITECTURE} )
You can’t perform that action at this time.
0 commit comments