Added an example for creating arbitrary projects, see acc/test_solver and src/exampleproject. Note: make sure that dt is calculated adequately and that all parameters are defined properly (see src/exampleproject/simulation.cc)
This commit is contained in:
11
src/exampleproject/CMakeLists.txt
Normal file
11
src/exampleproject/CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
## C++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
## Compilation flags
|
||||
add_compile_options(-Wall -Wextra -Werror -Wdouble-promotion -Wfloat-conversion -Wshadow)
|
||||
|
||||
## Compile and link
|
||||
add_executable(ac_simulate simulation.cc)
|
||||
target_link_libraries(ac_simulate PRIVATE astaroth_core astaroth_utils)
|
||||
add_definitions(-DAC_DEFAULT_CONFIG="${CMAKE_SOURCE_DIR}/config/astaroth.conf")
|
||||
Reference in New Issue
Block a user