test(relative-paths): Remove inlined CMake from cmake.toml

main
Anthony Printup 1 year ago
parent 1c2947b2fc
commit 854e8817c4
No known key found for this signature in database
GPG Key ID: C8CB17EEA5183BD0

@ -4,16 +4,6 @@ name = "relative-paths"
[target.test-library]
type = "static"
sources = ["src/library-code.cpp"]
cmake-after = """
set(TEST_LIBRARY_TARGET_NAME ${CMKR_TARGET})
set(LIBRARIES_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/libs")
add_custom_command(
TARGET ${CMKR_TARGET} POST_BUILD
COMMAND mkdir "${LIBRARIES_OUTPUT_DIRECTORY}"
COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:${CMKR_TARGET}>" "${LIBRARIES_OUTPUT_DIRECTORY}/test-library-file.lib"
VERBATIM
)
"""
[target.example]
type = "executable"

Loading…
Cancel
Save