forked from andreacasalino/Easy-Factor-Graph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (30 loc) · 789 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
39
40
41
42
43
44
45
if (WIN32)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
endif (WIN32)
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG main
)
FetchContent_MakeAvailable(googletest)
add_subdirectory(Utils)
function(MakeTest NAME)
add_executable(${NAME} ${NAME}.cpp)
target_link_libraries(${NAME}
PUBLIC
Test-Utils
)
install(TARGETS ${NAME})
endfunction()
MakeTest(Test01-Range)
MakeTest(Test02-Distribution)
MakeTest(Test03-DistributionFinder)
MakeTest(Test04-FactorSetting)
MakeTest(Test05-FactorConstruction)
# MakeTest(Test06-Insertions)
# MakeTest(Test07-Evidences)
# MakeTest(Test08-BeliefPropagation)
# MakeTest(Test09-Gibbs)
# MakeTest(Test10-Learning)
# MakeTest(Test11-ThreadPoolEfficiency)