diff options
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | meson.build | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4740aec..8f770a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,11 +10,13 @@ set_target_properties(objlib PROPERTIES LINKER_LANGUAGE C) add_library(ocusts SHARED $<TARGET_OBJECTS:objlib> include/locusts.h) target_link_libraries(ocusts PUBLIC objlib) set_target_properties(ocusts PROPERTIES LINKER_LANGUAGE C) +set_target_properties(ocusts PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) add_library(ocusts_static STATIC $<TARGET_OBJECTS:objlib> include/locusts.h) target_link_libraries(ocusts_static PUBLIC objlib) set_target_properties(ocusts_static PROPERTIES LINKER_LANGUAGE C) +# Make autoconf and cmake agree with each other set(prefix ${CMAKE_INSTALL_PREFIX}) set(libdir $\${prefix}/${CMAKE_INSTALL_LIBDIR}) set(includedir \${prefix}/${CMAKE_INSTALL_INCLUDEDIR}) diff --git a/meson.build b/meson.build index 174a582..7afb496 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project('locusts', 'c', version: '1.0.0', default_options: ['warning_level=3']) source = 'include/locusts.h' -lib = library('ocusts', source, install: true) +lib = library('ocusts', source, install: true, version: meson.project_version(), soversion: '1') project_dep =declare_dependency(include_directories: include_directories('include')) |