Skip to content
Snippets Groups Projects
Commit 34896d4f authored by Frederik Hennig's avatar Frederik Hennig
Browse files

started CMake setup for examples

parent 8b501d33
Branches
No related merge requests found
...@@ -21,5 +21,8 @@ dist ...@@ -21,5 +21,8 @@ dist
htmlcov htmlcov
coverage.xml coverage.xml
# cmake
CMakeUserPresets.json
# scratch # scratch
scratch scratch
\ No newline at end of file
cmake_minimum_required( VERSION 3.24 ) cmake_minimum_required( VERSION 3.24 )
project ( sfg-walberla ) project ( sfg-walberla )
SET ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake ) option( SFG_WALBERLA_BUILD_EXAMPLES "Build sfg-walberla's examples" OFF )
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake )
find_package( PystencilsSfg REQUIRED ) find_package( PystencilsSfg REQUIRED )
add_library( sfg_walberla INTERFACE ) add_library( sfg_walberla INTERFACE )
...@@ -17,3 +19,7 @@ target_link_libraries( ...@@ -17,3 +19,7 @@ target_link_libraries(
INTERFACE INTERFACE
core stencil domain_decomposition blockforest field core stencil domain_decomposition blockforest field
) )
if( ${SFG_WALBERLA_BUILD_EXAMPLES} )
add_subdirectory( examples )
endif()
\ No newline at end of file
include(FetchContent)
FetchContent_Declare(
walberla
GIT_REPOSITORY https://i10git.cs.fau.de/walberla/walberla.git
)
FetchContent_MakeAvailable(walberla)
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