cmake: added library version information to the targets.

This commit is contained in:
2018-06-02 12:41:13 +02:00
parent f109281ba7
commit 99e8eb9769
18 changed files with 123 additions and 7 deletions

View File

@@ -15,6 +15,13 @@ configure_file("PNeXus.pc.in" "PNeXus.pc" @ONLY)
add_library(PNeXus SHARED
PNeXus.cpp
)
#--- set target properties, e.g. version --------------------------------------
set_target_properties(PNeXus
PROPERTIES
VERSION ${PNEXUS_VERSION}
)
#--- make sure that the include directory is found ----------------------------
target_include_directories(
PNeXus BEFORE PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>