Skip to content
Snippets Groups Projects
Commit 208f9544 authored by Christoph Junghans's avatar Christoph Junghans
Browse files

cmake: add so version to library

parent 7f881403
No related branches found
No related tags found
1 merge request!26cmake: add so version to library
Pipeline #224639 passed
...@@ -52,6 +52,7 @@ project(ALL ...@@ -52,6 +52,7 @@ project(ALL
VERSION "0.9.2" VERSION "0.9.2"
DESCRIPTION "A Loadbalacing Library" DESCRIPTION "A Loadbalacing Library"
HOMEPAGE_URL "http://slms.pages.jsc.fz-juelich.de/websites/all-website/") HOMEPAGE_URL "http://slms.pages.jsc.fz-juelich.de/websites/all-website/")
set(ALL_SOVERSION 0)
include(GNUInstallDirs) include(GNUInstallDirs)
......
...@@ -13,6 +13,7 @@ set(ALL_HEADER_FILES ...@@ -13,6 +13,7 @@ set(ALL_HEADER_FILES
${ALL_INCLUDE_DIR}/ALL_Voronoi.hpp) ${ALL_INCLUDE_DIR}/ALL_Voronoi.hpp)
add_library (ALL ALL.cpp ALL_fortran.cpp ${ALL_HEADER_FILES}) add_library (ALL ALL.cpp ALL_fortran.cpp ${ALL_HEADER_FILES})
set_target_properties(ALL PROPERTIES SOVERSION ${ALL_SOVERSION})
if(CM_ALL_VTK_OUTPUT) if(CM_ALL_VTK_OUTPUT)
target_include_directories(ALL PUBLIC ${VTK_INCLUDE_DIRS}) target_include_directories(ALL PUBLIC ${VTK_INCLUDE_DIRS})
...@@ -49,6 +50,7 @@ if (CM_ALL_FORTRAN) ...@@ -49,6 +50,7 @@ if (CM_ALL_FORTRAN)
set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../modules) set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../modules)
add_library (ALL_fortran ALL_module.F90) add_library (ALL_fortran ALL_module.F90)
set_property(TARGET ALL_fortran PROPERTY LINKER_LANGUAGE Fortran) set_property(TARGET ALL_fortran PROPERTY LINKER_LANGUAGE Fortran)
set_target_properties(ALL_fortran PROPERTIES SOVERSION ${ALL_SOVERSION})
target_include_directories(ALL_fortran PUBLIC ${MPI_Fortran_INCLUDE_PATH}) target_include_directories(ALL_fortran PUBLIC ${MPI_Fortran_INCLUDE_PATH})
target_include_directories(ALL_fortran target_include_directories(ALL_fortran
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment