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

refactor examples structure

parent 34896d4f
No related merge requests found
cmake_minimum_required( VERSION 3.24 )
project ( sfg-walberla )
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 )
......@@ -19,7 +17,3 @@ target_link_libraries(
INTERFACE
core stencil domain_decomposition blockforest field
)
if( ${SFG_WALBERLA_BUILD_EXAMPLES} )
add_subdirectory( examples )
endif()
\ No newline at end of file
cmake_minimum_required( VERSION 3.24 )
project( walberla-codegen-examples )
include(FetchContent)
FetchContent_Declare(
......@@ -6,3 +9,8 @@ FetchContent_Declare(
)
FetchContent_MakeAvailable(walberla)
add_subdirectory(${CMAKE_SOURCE_DIR}/.. ${CMAKE_BINARY_DIR}/sfg-walberla)
add_subdirectory( PoiseuilleChannel )
int main(void) {
return 0;
}
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