mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
set_target_properties version
This commit is contained in:
parent
36717e6336
commit
8bc418ebc7
8
3rdparty/gtest/CMakeLists.txt
vendored
8
3rdparty/gtest/CMakeLists.txt
vendored
@ -8,6 +8,10 @@
|
|||||||
# ctest. You can select which tests to run using 'ctest -R regex'.
|
# ctest. You can select which tests to run using 'ctest -R regex'.
|
||||||
# For more options, run 'ctest --help'.
|
# 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,
|
# When other libraries are using a shared version of runtime libraries,
|
||||||
# Google Test also has to use one.
|
# Google Test also has to use one.
|
||||||
option(
|
option(
|
||||||
@ -59,10 +63,6 @@ if (POLICY CMP0063) # Visibility
|
|||||||
cmake_policy(SET CMP0063 NEW)
|
cmake_policy(SET CMP0063 NEW)
|
||||||
endif (POLICY CMP0063)
|
endif (POLICY CMP0063)
|
||||||
|
|
||||||
if (POLICY CMP0077) # Visibility
|
|
||||||
cmake_policy(SET CMP0077 NEW)
|
|
||||||
endif (POLICY CMP0077)
|
|
||||||
|
|
||||||
if (COMMAND set_up_hermetic_build)
|
if (COMMAND set_up_hermetic_build)
|
||||||
set_up_hermetic_build()
|
set_up_hermetic_build()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.12)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(cpp-ipc)
|
project(cpp-ipc)
|
||||||
|
|
||||||
option(LIBIPC_BUILD_TESTS "Build all of libipc's own tests." OFF)
|
option(LIBIPC_BUILD_TESTS "Build all of libipc's own tests." OFF)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
project(ipc VERSION 1.0.0 LANGUAGES CXX)
|
project(ipc)
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
file(GLOB SRC_FILES ${LIBIPC_PROJECT_DIR}/src/libipc/platform/*_linux.cpp)
|
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"
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||||||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" )
|
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}
|
target_include_directories(${PROJECT_NAME}
|
||||||
PUBLIC ${LIBIPC_PROJECT_DIR}/include
|
PUBLIC ${LIBIPC_PROJECT_DIR}/include
|
||||||
PRIVATE ${LIBIPC_PROJECT_DIR}/src
|
PRIVATE ${LIBIPC_PROJECT_DIR}/src
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user