Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Add version as suffix to shared library.
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio El Khoury committed Sep 26, 2013
1 parent 9dd4946 commit 7774b52
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ INCLUDE_DIRECTORIES("${Boost_INCLUDE_DIRS}")
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}")
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}")

SET(LIBRARY_NAME ${PROJECT_NAME})

SET(${PACKAGE_NAME}_SOURCES
config-extendor.cc
config-optimizer.cc
Expand All @@ -28,13 +30,14 @@ SET(${PACKAGE_NAME}_SOURCES
kws-constraint.cc
)

ADD_LIBRARY(hpp-constrained
ADD_LIBRARY(${LIBRARY_NAME}
SHARED
${${PACKAGE_NAME}_SOURCES}
)

PKG_CONFIG_USE_DEPENDENCY(hpp-constrained hpp-model)
PKG_CONFIG_USE_DEPENDENCY(hpp-constrained hpp-gik)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})

PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} hpp-model)
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} hpp-gik)

INSTALL(TARGETS hpp-constrained
DESTINATION lib)
INSTALL(TARGETS ${LIBRARY_NAME} DESTINATION lib)

0 comments on commit 7774b52

Please sign in to comment.