aboutsummaryrefslogtreecommitdiff
path: root/src/tests/bin_geodtest.cmake
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2022-02-14 22:07:34 +1300
committerGitHub <noreply@github.com>2022-02-14 22:07:34 +1300
commitcb35cb17ace5d16c63d700378d78e0b057531e25 (patch)
tree22effa82d30e6fb10d655b832065eeb8086b9015 /src/tests/bin_geodtest.cmake
parent6bc988593357c2c5d47e98db6ee7e2a394113052 (diff)
downloadPROJ-cb35cb17ace5d16c63d700378d78e0b057531e25.tar.gz
PROJ-cb35cb17ace5d16c63d700378d78e0b057531e25.zip
CMake: split configuration files for apps and tests (#3048)
Diffstat (limited to 'src/tests/bin_geodtest.cmake')
-rw-r--r--src/tests/bin_geodtest.cmake10
1 files changed, 10 insertions, 0 deletions
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)