set(GEODTEST_SRC tests/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})
target_compile_options(geodtest PRIVATE ${PROJ_CXX_WARN_FLAGS})

# Do not install, instead run as a test
add_test(NAME geodesic-test COMMAND geodtest)

if(MSVC AND BUILD_SHARED_LIBS)
  target_compile_definitions(geodtest PRIVATE PROJ_MSVC_DLL_IMPORT=1)
endif()
