Skip to content

Commit

Permalink
CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
e-kwsm committed Nov 27, 2023
1 parent 6a14856 commit b06cd0c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.2)
project(coordgen)
project(coordgen VERSION 3.0.2)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

Expand Down Expand Up @@ -86,7 +86,7 @@ endif()

set_target_properties(coordgen
PROPERTIES
VERSION 3.0.2
VERSION ${PROJECT_VERSION}
SOVERSION 3
)

Expand Down Expand Up @@ -131,6 +131,12 @@ install(EXPORT coordgen-targets
FILE ${PROJECT_NAME}-config.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)

include(CMakePackageConfigHelpers)
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
COMPATIBILITY AnyNewerVersion)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake)

# Example
if(COORDGEN_BUILD_EXAMPLE)
add_subdirectory(example_dir)
Expand Down

0 comments on commit b06cd0c

Please sign in to comment.