Commit cefd5966 authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

Cmake: remove tabs

parent eea751e3
......@@ -9,16 +9,16 @@ get_version(MHM_VER MHM_VER_DEV MHM_DATE)
# create the project
project(mhm
VERSION ${MHM_VER}
DESCRIPTION "The mesoscale Hydrological Model"
HOMEPAGE_URL "https://www.ufz.de/mhm"
LANGUAGES Fortran
)
VERSION ${MHM_VER}
DESCRIPTION "The mesoscale Hydrological Model"
HOMEPAGE_URL "https://www.ufz.de/mhm"
LANGUAGES Fortran
)
# add full version and date to pre-processor flags (qoutes need in before hand)
add_compile_definitions(
MHMVERSION='${MHM_VER_DEV}'
MHMVERSION='${MHM_VER_DEV}'
MHMDATE='${MHM_DATE}'
)
)
# Compile
add_subdirectory(./src) # the lib folder containing mhm_lib
......@@ -27,13 +27,13 @@ target_link_libraries(mhm PRIVATE mhm_lib)
# setup coverage with GNU
if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU" AND CMAKE_WITH_COVERAGE)
include(CodeCoverage)
APPEND_COVERAGE_COMPILER_FLAGS()
SETUP_TARGET_FOR_COVERAGE_LCOV(NAME mhm_coverage_CI
EXECUTABLE ../CI-scripts/run_cmake_coverage.sh
DEPENDENCIES mhm
EXCLUDE src/lib/*
GENHTML_ARGS -t "mHM coverage" --html-prolog ../doc/html_files/cov_header.prolog)
include(CodeCoverage)
APPEND_COVERAGE_COMPILER_FLAGS()
SETUP_TARGET_FOR_COVERAGE_LCOV(NAME mhm_coverage_CI
EXECUTABLE ../CI-scripts/run_cmake_coverage.sh
DEPENDENCIES mhm
EXCLUDE src/lib/*
GENHTML_ARGS -t "mHM coverage" --html-prolog ../doc/html_files/cov_header.prolog)
endif()
# Usually that works fine, except, one is on a module system and tries to execute the executable
......@@ -43,9 +43,9 @@ endif()
# paths are added to the INSTALL_RPATH, and via the second command also to the build.
# It is a bit of a mess and workaround though.
if (CMAKE_BUILD_MODULE_SYSTEM_INDEPENDENT)
set_target_properties(mhm
PROPERTIES
INSTALL_RPATH "${CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES}"
BUILD_WITH_INSTALL_RPATH ON
)
set_target_properties(mhm
PROPERTIES
INSTALL_RPATH "${CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES}"
BUILD_WITH_INSTALL_RPATH ON
)
endif()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment