Skip to content

Commit

Permalink
test/libicalvcard/CMakeLists.txt: Fix use as a CMake sub-build
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmurchison committed Apr 25, 2024
1 parent e69d40b commit 62af925
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/test/libicalvcard/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
include(CTest)

include_directories(
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/src
${CMAKE_BINARY_DIR}/src
${CMAKE_SOURCE_DIR}/src/libical
${CMAKE_BINARY_DIR}/src/libical
${CMAKE_SOURCE_DIR}/src/libicalvcard
${CMAKE_BINARY_DIR}/src/libicalvcard
${PROJECT_BINARY_DIR}
${PROJECT_SOURCE_DIR}/src
${PROJECT_BINARY_DIR}/src
${PROJECT_SOURCE_DIR}/src/libical
${PROJECT_BINARY_DIR}/src/libical
${PROJECT_SOURCE_DIR}/src/libicalvcard
${PROJECT_BINARY_DIR}/src/libicalvcard
)

add_executable(vcard_test vcard_test.c)
Expand All @@ -29,7 +29,7 @@ add_dependencies(vcard_test_encode icalvcard)
target_link_libraries(vcard_test_encode icalvcard)

add_test(NAME vcard_construct
COMMAND vcard_test ${CMAKE_SOURCE_DIR}/test-data/test.vcf
COMMAND vcard_test ${PROJECT_SOURCE_DIR}/test-data/test.vcf
)
setprops(vcard_construct)

Expand Down

0 comments on commit 62af925

Please sign in to comment.