Skip to content

Commit

Permalink
Add GTA Run Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thbeu committed Aug 12, 2024
1 parent ffe7974 commit bc75001
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ EXTRA_DIST = makefile.vc CMakeLists.txt autogen.sh \
cmake/contrib.cmake \
cmake/project-config-version.cmake.in \
cmake/project-config.cmake.in \
cmake/shapelib.gta.runsettings.in \
cmake/shapelib.pc.cmake.in \
tests/CMakeLists.txt \
tests/dbf_test.cc \
Expand Down
10 changes: 10 additions & 0 deletions cmake/shapelib.gta.runsettings.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
<GoogleTestAdapterSettings>
<SolutionSettings>
<Settings>
<WorkingDir>@CMAKE_SOURCE_DIR@/tests</WorkingDir>
</Settings>
</SolutionSettings>
</GoogleTestAdapterSettings>
</RunSettings>
6 changes: 6 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ foreach(executable dbf_test sbn_test shp_test)
target_compile_features(${executable} PUBLIC cxx_std_17)
set_target_properties(${executable} PROPERTIES FOLDER "tests" CXX_EXTENSIONS OFF)
endforeach()

configure_file(
${CMAKE_SOURCE_DIR}/cmake/shapelib.gta.runsettings.in
${CMAKE_BINARY_DIR}/shapelib.gta.runsettings
@ONLY
)

0 comments on commit bc75001

Please sign in to comment.