Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W waLBerla
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 51
    • Issues 51
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • waLBerla
  • waLBerla
  • Merge requests
  • !405

Draft: cmake cleanup

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Sebastian Eibl requested to merge cmake_cleanup into master Jan 27, 2021
  • Overview 13
  • Commits 11
  • Pipelines 11
  • Changes 16

Refactoring and unifying of how external libraries are imported to waLBerla.

if (NOT DEFINED WALBERLA_BUILD_WITH_XXX)
    find_package(XXX)
    if (XXX_FOUND)
        option(WALBERLA_BUILD_WITH_XXX "Build with XXX" ON)
    else()
        option(WALBERLA_BUILD_WITH_XXX "Build with XXX" OFF)
    endif()
else()
    if (WALBERLA_BUILD_WITH_XXX)
        find_package(XXX REQUIRED)
    endif()
endif()
if (WALBERLA_BUILD_WITH_XXX)
    if (NOT XXX_FOUND)
        message(FATAL_ERROR "something strange happened")
    endif()
    #add external library
    include_directories( XXX )
    link_directories   ( XXX )
    list ( APPEND SERVICE_LIBS XXX )
endif()
Edited Feb 18, 2021 by Sebastian Eibl
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cmake_cleanup