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 88# ctest. You can select which tests to run using 'ctest -R regex'.
99# For more options, run 'ctest --help'.
1010
11+ if (POLICY CMP0077)
12+ cmake_policy (SET CMP0077 NEW)
13+ endif (POLICY CMP0077)
14+
1115# When other libraries are using a shared version of runtime libraries,
1216# Google Test also has to use one.
1317option (
@@ -59,10 +63,6 @@ if (POLICY CMP0063) # Visibility
5963 cmake_policy (SET CMP0063 NEW)
6064endif (POLICY CMP0063)
6165
62- if (POLICY CMP0077) # Visibility
63- cmake_policy (SET CMP0077 NEW)
64- endif (POLICY CMP0077)
65-
6666if (COMMAND set_up_hermetic_build)
6767 set_up_hermetic_build()
6868endif ()
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.12 )
1+ cmake_minimum_required (VERSION 3.10 )
22project (cpp-ipc)
33
44option (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)
22
33if (UNIX )
44 file (GLOB SRC_FILES ${LIBIPC_PROJECT_DIR} /src/libipc/platform/*_linux.cpp)
@@ -34,6 +34,12 @@ set_target_properties(${PROJECT_NAME}
3434 LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /lib"
3535 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /bin" )
3636
37+ # set version
38+ set_target_properties (${PROJECT_NAME}
39+ PROPERTIES
40+ VERSION 1.0.0
41+ SOVERSION 1)
42+
3743target_include_directories (${PROJECT_NAME}
3844 PUBLIC ${LIBIPC_PROJECT_DIR} /include
3945 PRIVATE ${LIBIPC_PROJECT_DIR} /src
@@ -50,4 +56,4 @@ install(
5056 RUNTIME DESTINATION bin
5157 LIBRARY DESTINATION lib
5258 ARCHIVE DESTINATION lib
53- )
59+ )
You can’t perform that action at this time.
0 commit comments