Skip to content
Snippets Groups Projects
Commit 5e0b3974 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Debug builds with dependencies.

parent 1762f82e
No related branches found
No related tags found
2 merge requests!33Release 0.1,!30Debug build
Pipeline #14792 passed with warnings
Pipeline: caosdb-cppinttest

#14796

    This commit is part of merge request !33. Comments created here will be created in the context of that merge request.
    ...@@ -58,16 +58,22 @@ conan-install: ...@@ -58,16 +58,22 @@ conan-install:
    conan install . -s $(CONAN_SETTINGS) --build=missing) conan install . -s $(CONAN_SETTINGS) --build=missing)
    .PHONY: conan-install .PHONY: conan-install
    conan-install-debug:
    conan install . -s $(CONAN_SETTINGS) -s build_type=Debug || \
    (echo "'conan install' failed, trying to build from sources..."; \
    conan install . -s $(CONAN_SETTINGS) -s build_type=Debug --build=missing)
    .PHONY: conan-install-debug
    conan-create: conan-create:
    conan create . -s $(CONAN_SETTINGS) conan create . -s $(CONAN_SETTINGS)
    .PHONY: conan-create .PHONY: conan-create
    conan-create-debug: conan-create-debug:
    conan create . -s $(CONAN_SETTINGS) -s build_type=Debug conan create . -s $(CONAN_SETTINGS) -s build_type=Debug
    .PHONY: conan-create .PHONY: conan-create-debug
    conan: conan-install conan-create conan: conan-install conan-create
    .PHONY: conan .PHONY: conan
    conan-debug: conan-install conan-create-debug conan-debug: conan-install-debug conan-create-debug
    .PHONY: conan-debug .PHONY: conan-debug
    ...@@ -81,7 +81,7 @@ Depending on the clang version it might be necessary to use additionally the fol ...@@ -81,7 +81,7 @@ Depending on the clang version it might be necessary to use additionally the fol
    For the tests there is a slightly different setup required (with option `-D CMAKE_BUILD_TYPE=Debug`) For the tests there is a slightly different setup required (with option `-D CMAKE_BUILD_TYPE=Debug`)
    1. `mkdir build && cd build/` 1. `mkdir build && cd build/`
    2. `conan install .. -s "compiler.libcxx=libstdc++11"` 2. `conan install .. -s "compiler.libcxx=libstdc++11"` (on MacOS: ` -s compiler.cppstd=17`)
    3. `cmake -B . -D CMAKE_BUILD_TYPE=Debug ..` 3. `cmake -B . -D CMAKE_BUILD_TYPE=Debug ..`
    * If your clang-format version is too old, formatting, linting etc. can be skipped: * If your clang-format version is too old, formatting, linting etc. can be skipped:
    `cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..` `cmake -B . -D CMAKE_BUILD_TYPE=Debug -D SKIP_LINTING=ON ..`
    ......
    ...@@ -88,6 +88,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/caosdb_test_utility.h.in ...@@ -88,6 +88,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/caosdb_test_utility.h.in
    include(CodeCoverage) include(CodeCoverage)
    # TODO: Also test for gcov linking path, or add SKIP_COV option.
    if (LCOV_PATH) if (LCOV_PATH)
    message(STATUS "Found LCOV: ${LCOV_PATH}") message(STATUS "Found LCOV: ${LCOV_PATH}")
    target_link_libraries(caosdb gcov) target_link_libraries(caosdb gcov)
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment