diff --git a/3rdparty/gtest/CMakeLists.txt b/3rdparty/gtest/CMakeLists.txt index d529d90..97af605 100644 --- a/3rdparty/gtest/CMakeLists.txt +++ b/3rdparty/gtest/CMakeLists.txt @@ -8,6 +8,10 @@ # ctest. You can select which tests to run using 'ctest -R regex'. # For more options, run 'ctest --help'. +if (POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif (POLICY CMP0077) + # When other libraries are using a shared version of runtime libraries, # Google Test also has to use one. option( @@ -59,10 +63,6 @@ if (POLICY CMP0063) # Visibility cmake_policy(SET CMP0063 NEW) endif (POLICY CMP0063) -if (POLICY CMP0077) # Visibility - cmake_policy(SET CMP0077 NEW) -endif (POLICY CMP0077) - if (COMMAND set_up_hermetic_build) set_up_hermetic_build() endif() diff --git a/CMakeLists.txt b/CMakeLists.txt index 08d6c15..ab539ea 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.12) +cmake_minimum_required(VERSION 3.10) project(cpp-ipc) option(LIBIPC_BUILD_TESTS "Build all of libipc's own tests." OFF) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cd49b02..ad60120 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,4 @@ -project(ipc VERSION 1.0.0 LANGUAGES CXX) +project(ipc) if(UNIX) file(GLOB SRC_FILES ${LIBIPC_PROJECT_DIR}/src/libipc/platform/*_linux.cpp) @@ -34,6 +34,12 @@ set_target_properties(${PROJECT_NAME} LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" ) +# set version +set_target_properties(${PROJECT_NAME} + PROPERTIES + VERSION 1.0.0 + SOVERSION 1) + target_include_directories(${PROJECT_NAME} PUBLIC ${LIBIPC_PROJECT_DIR}/include PRIVATE ${LIBIPC_PROJECT_DIR}/src @@ -50,4 +56,4 @@ install( RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib -) \ No newline at end of file +)