Enhanced version handling
This commit is contained in:
parent
aedb81ee83
commit
b948e237c5
|
@ -1,7 +1,11 @@
|
|||
# Top-level CMakeLists.txt for liboceanography
|
||||
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
project(liboceanography C)
|
||||
|
||||
set(oceanography_version 1.0.0)
|
||||
|
||||
# Prevent build in source directory
|
||||
if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_SOURCE_DIR}")
|
||||
message (FATAL_ERROR "Building in the source directory is not supported.")
|
||||
|
|
|
@ -5,7 +5,7 @@ add_library(oceanography SHARED ${oceanography_lib_src})
|
|||
|
||||
set_target_properties(oceanography
|
||||
PROPERTIES
|
||||
VERSION 1.0.0
|
||||
VERSION ${oceanography_version}
|
||||
SOVERSION 1)
|
||||
|
||||
install(TARGETS oceanography
|
||||
|
|
Loading…
Reference in a new issue