Add SONAME

This commit is contained in:
Jaroslav Škarvada 2012-09-05 11:43:28 +02:00
parent 6c7a73702e
commit 60fd7b640f
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,8 @@
########################################################################
cmake_minimum_required(VERSION 2.6)
project(gr-gr-air-modes CXX)
set(gr-gr-air-modes_VERSION_MAJOR 0)
set(gr-gr-air-modes_VERSION_MINOR 0)
enable_testing()
#select the release build type by default to get optimization flags

View File

@ -29,6 +29,8 @@ add_library(air_modes SHARED
)
target_link_libraries(air_modes ${Boost_LIBRARIES} ${GRUEL_LIBRARIES} ${GNURADIO_CORE_LIBRARIES})
set_target_properties(air_modes PROPERTIES DEFINE_SYMBOL "AIR_MODES_EXPORTS")
set_target_properties(air_modes PROPERTIES SOVERSION "${gr-gr-air-modes_VERSION_MAJOR}")
set_target_properties(air_modes PROPERTIES VERSION "${gr-gr-air-modes_VERSION_MAJOR}.${gr-gr-air-modes_VERSION_MINOR}")
########################################################################
# Install built library files