aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/CMakeLists.txt4
-rw-r--r--src/tests/bin_geodtest.cmake10
2 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
new file mode 100644
index 00000000..4b4f8145
--- /dev/null
+++ b/src/tests/CMakeLists.txt
@@ -0,0 +1,4 @@
+# BUILD_GEOD is defined in src/apps/CMakeLists.txt
+if(BUILD_TESTING AND BUILD_GEOD)
+ include(bin_geodtest.cmake)
+endif()
diff --git a/src/tests/bin_geodtest.cmake b/src/tests/bin_geodtest.cmake
new file mode 100644
index 00000000..f0c26f3b
--- /dev/null
+++ b/src/tests/bin_geodtest.cmake
@@ -0,0 +1,10 @@
+set(GEODTEST_SRC geodtest.cpp)
+set(GEODTEST_INCLUDE)
+
+source_group("Source Files\\Bin" FILES ${GEODTEST_SRC} ${GEODTEST_INCLUDE})
+
+add_executable(geodtest ${GEODTEST_SRC} ${GEODTEST_INCLUDE})
+target_link_libraries(geodtest PRIVATE ${PROJ_LIBRARIES})
+
+# Do not install, instead run as a test
+add_test(NAME geodesic-test COMMAND geodtest)