File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 8
8
# ctest. You can select which tests to run using 'ctest -R regex'.
9
9
# For more options, run 'ctest --help'.
10
10
11
+ if (POLICY CMP0077 )
12
+ cmake_policy (SET CMP0077 NEW )
13
+ endif (POLICY CMP0077 )
14
+
11
15
# When other libraries are using a shared version of runtime libraries,
12
16
# Google Test also has to use one.
13
17
option (
@@ -59,10 +63,6 @@ if (POLICY CMP0063) # Visibility
59
63
cmake_policy (SET CMP0063 NEW )
60
64
endif (POLICY CMP0063 )
61
65
62
- if (POLICY CMP0077 ) # Visibility
63
- cmake_policy (SET CMP0077 NEW )
64
- endif (POLICY CMP0077 )
65
-
66
66
if (COMMAND set_up_hermetic_build )
67
67
set_up_hermetic_build ()
68
68
endif ()
Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.12 )
1
+ cmake_minimum_required (VERSION 3.10 )
2
2
project (cpp-ipc )
3
3
4
4
option (LIBIPC_BUILD_TESTS "Build all of libipc's own tests." OFF )
Original file line number Diff line number Diff line change 1
- project (ipc VERSION 1.0.0 LANGUAGES CXX )
1
+ project (ipc )
2
2
3
3
if (UNIX )
4
4
file (GLOB SRC_FILES ${LIBIPC_PROJECT_DIR} /src/libipc/platform/*_linux.cpp )
@@ -34,6 +34,12 @@ set_target_properties(${PROJECT_NAME}
34
34
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib"
35
35
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin" )
36
36
37
+ # set version
38
+ set_target_properties (${PROJECT_NAME}
39
+ PROPERTIES
40
+ VERSION 1.0.0
41
+ SOVERSION 1 )
42
+
37
43
target_include_directories (${PROJECT_NAME}
38
44
PUBLIC ${LIBIPC_PROJECT_DIR} /include
39
45
PRIVATE ${LIBIPC_PROJECT_DIR} /src
@@ -50,4 +56,4 @@ install(
50
56
RUNTIME DESTINATION bin
51
57
LIBRARY DESTINATION lib
52
58
ARCHIVE DESTINATION lib
53
- )
59
+ )
You can’t perform that action at this time.
0 commit comments