Skip to content

Commit

Permalink
Use CMake to copy opening-count.lst
Browse files Browse the repository at this point in the history
Signed-off-by: Osyotr <Osyotr@users.noreply.github.com>
  • Loading branch information
Osyotr authored and biodranik committed Apr 12, 2024
1 parent 1b8ca0c commit 7f9d781
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ omim_add_test(${PROJECT_NAME} ${SRC} BOOST_TEST)

target_link_libraries(${PROJECT_NAME} opening_hours)

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(COPY_CMD cp -u)
else()
set(COPY_CMD rsync -a)
endif()

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD
COMMAND ${COPY_CMD} "${CMAKE_CURRENT_SOURCE_DIR}/opening-count.lst" "${CMAKE_BINARY_DIR}/"
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/opening-count.lst" "${CMAKE_BINARY_DIR}/"
COMMENT "Copying opening-count.lst file for testing"
)

0 comments on commit 7f9d781

Please sign in to comment.