-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
68 lines (56 loc) · 1.91 KB
/
CMakeLists.txt
File metadata and controls
68 lines (56 loc) · 1.91 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This is the main CMake build file used to compile HoloDaye
cmake_minimum_required (VERSION 3.15)
project("HoloDaye" LANGUAGES CXX VERSION 0.0.1)
# This file included below takes care of compiling dependencies
# and setting compiler flags on different platforms
include("CMakeConfig.txt")
include_directories(ext)
include_directories(include)
# The following lines build the main executable. If you add a source
# code file to HoloDaye, be sure to include it in this list.
add_executable(holodaye
# Header files
# include/holodaye/elevation.h
# include/holodaye/output.h
# include/holodaye/utils.h
# Source code files
src/dataset.cpp
src/main.cpp
src/query.cpp
src/output.cpp
src/utils.cpp)
# Generating data for final demo
add_subdirectory(final_demo_data)
# Check the altitude of the uetliberg
add_executable(uetliberg
src/dataset.cpp
src/utils.cpp
test/uetliberg.cpp
)
# All codes below are in the purpose of testing.
# Test with catch2
add_subdirectory(ext/Catch2)
# These tests can use the Catch2-provided main
# Unit test for ElevationQuery
# add_executable(DummyElevationDataTest
# test/dummy_elevation_data_test.cpp
# src/dataset.cpp
# )
# target_link_libraries(DummyElevationDataTest PRIVATE Catch2::Catch2WithMain)
add_executable(ElevationDataTest
test/elevation_data_test.cpp
src/dataset.cpp)
target_link_libraries(ElevationDataTest PRIVATE Catch2::Catch2WithMain)
add_executable(ElevationQueryTest
test/elevation_query_test.cpp
src/dataset.cpp
src/query.cpp)
target_link_libraries(ElevationQueryTest PRIVATE Catch2::Catch2WithMain)
# These tests need their own main
# add_executable(custom-main-tests test.cpp test-main.cpp)
# target_link_libraries(custom-main-tests PRIVATE Catch2::Catch2)
include(CTest)
include(Catch)
# catch_discover_tests(DummyElevationDataTest)
catch_discover_tests(ElevationDataTest)
catch_discover_tests(ElevationQueryTest)