Skip to content

Commit

Permalink
Test proj
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Meynard authored and Christophe Meynard committed Jun 19, 2024
1 parent b69d4af commit 0763966
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions MMVII/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ MMVII-PhgrProj/
MMVII-PhgrProj*/
MMVII-Tmp-Dir-Glob/
Tmp-MM-Dir/
/share/
.*.d
!bin/
bin/*
Expand Down
6 changes: 6 additions & 0 deletions MMVII/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ if (NOT PROJ_FOUND)
pkg_search_module(PROJ REQUIRED proj)
endif()

if (CMAKE_HOST_WIN32)
find_file(PROJ_PROJ_DB_FILE proj.db PATHS ${PROJ_DIR} ${PROJ_BINARY_DIRS}/../share/proj NO_DEFAULT_PATH)
file(COPY ${PROJ_PROJ_DB_FILE} DESTINATION ${MMVII_SOURCE_DIR}/share/proj)
endif()


# Threads
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads)
Expand Down

0 comments on commit 0763966

Please sign in to comment.