Skip to content

CMake: Add GTA Run Settings #144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>@PROJECT_SOURCE_DIR@</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
)