Skip to content

Commit

Permalink
Trying to change the copy_files function v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Duta-Sebastian committed Nov 9, 2024
1 parent 408a72c commit 1b40a90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ FetchContent_Declare(
include(${CMAKE_HELPER_DIR}/CompilerFlags.cmake)
)
FetchContent_MakeAvailable(pqxx)

find_package(PostgreSQL)

option(RUN_TESTS "Run the test suites" OFF)
Expand Down
5 changes: 4 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,7 @@ if (APPLE)
install(FILES ${PROJECT_ROOT}/launcher.command DESTINATION ${DESTINATION_DIR})
endif ()

copy_files(OPTIONAL FILES tastatura.txt .env)
copy_files(FILES tastatura.env)
if (EXISTS ${PROJECT_ROOT}/.env)
copy_files(FILES .env)
endif ()
4 changes: 3 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,6 @@ target_link_libraries(${PROJECT_NAME} PRIVATE gtest gtest_main)
# DESTINATION_DIR is set as "bin" in cmake/Options.cmake:6
install(TARGETS ${PROJECT_NAME} DESTINATION ${DESTINATION_DIR})

copy_files(OPTIONAL FILES .env)
if (EXISTS ${PROJECT_ROOT}/.env)
copy_files(FILES .env)
endif ()

0 comments on commit 1b40a90

Please sign in to comment.