Skip to content

Commit

Permalink
Add version to library target
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Sep 7, 2020
1 parent 57c046c commit 089bb3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ set(CEN_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
set(CEN_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
set(CEN_LIBRARY_DIR ${PROJECT_SOURCE_DIR}/lib)
set(CEN_BINARIES_DIR ${PROJECT_SOURCE_DIR}/bin)
set(CENTURION_VERSION ${CMAKE_PROJECT_VERSION})

message("Centurion version: ${CENTURION_VERSION}")

set(CMAKE_CXX_STANDARD 17)
set(CXX_STANDARD_REQUIRED ON)
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ if (WIN32)
endif ()

set_target_properties(${CENTURION_LIB_TARGET} PROPERTIES
OUTPUT_NAME ${CMAKE_IMPORT_LIBRARY_PREFIX}Centurion)
OUTPUT_NAME ${CMAKE_IMPORT_LIBRARY_PREFIX}Centurion
VERSION ${CENTURION_VERSION})

set(GSL_SOURCES
${CEN_LIBRARY_DIR}/microsoft/gsl/gsl
Expand Down

0 comments on commit 089bb3f

Please sign in to comment.