mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-08-18 09:50:35 +00:00
30 lines
No EOL
567 B
CMake
30 lines
No EOL
567 B
CMake
# Make library:
|
|
add_library(spatial
|
|
FiniteDifference2D.cpp
|
|
)
|
|
|
|
target_include_directories(spatial
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${PROJECT_SOURCE_DIR}/heat2D/BoundaryCondition
|
|
)
|
|
|
|
target_link_libraries(spatial
|
|
PUBLIC
|
|
mesh
|
|
Eigen3::Eigen
|
|
$<$<BOOL:${OpenMP_CXX_FOUND}>:OpenMP::OpenMP_CXX>
|
|
)
|
|
|
|
# Build SpatialDiscretization test
|
|
add_executable(SpatialDiscretization2D_test
|
|
SpatialDiscretization2D.test.cpp
|
|
)
|
|
|
|
target_link_libraries(SpatialDiscretization2D_test
|
|
PUBLIC
|
|
spatial
|
|
GTest::gtest_main
|
|
)
|
|
|
|
gtest_discover_tests(SpatialDiscretization2D_test) |