-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
38 lines (31 loc) · 1004 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required (VERSION 3.14)
project("ScientificComputing")
include_directories(
${PROJECT_SOURCE_DIR}/scientific_computing
)
file(GLOB all_SRCS
${PROJECT_SOURCE_DIR}/scientific_computing/*.h
${PROJECT_SOURCE_DIR}/scientific_computing/*.cpp
)
include(FetchContent)
FetchContent_Declare(
linear_algebra
GIT_REPOSITORY "https://github.com/dhern023/linear_algebra.git"
GIT_TAG main
)
include(FetchContent)
FetchContent_Declare(
numerical_solvers
GIT_REPOSITORY "https://github.com/dhern023/numerical_solvers.git"
GIT_TAG main
)
FetchContent_MakeAvailable(
linear_algebra
numerical_solvers) # add other fetched names here
add_executable(${PROJECT_NAME} "ScientificComputing.cpp" "ScientificComputing.h" ${all_SRCS})
target_link_libraries(${PROJECT_NAME}
linear_algebra
numerical_solvers) # add other fetched names here
target_include_directories(${PROJECT_NAME}
PUBLIC ${linear_algebra_SOURCE_DIR}
${numerical_solvers_SOURCE_DIR})