cmake: use relative path to source-file

If this project is used via `add_subdirectory()` the
json-schema-test.cpp was not found.
This commit is contained in:
Patrick Boettcher 2018-04-17 23:11:10 +02:00
parent c552c7c02a
commit 7daba70db3

View File

@ -27,7 +27,7 @@ set(JSON_SCHEMA_TEST_PREFIX "JSON-Suite" CACHE STRING "prefix for JSON-tests add
if(JSON_SCHEMA_TEST_SUITE_PATH)
# json-schema-validator-tester
add_executable(json-schema-test ${CMAKE_SOURCE_DIR}/app/json-schema-test.cpp)
add_executable(json-schema-test ../app/json-schema-test.cpp)
target_link_libraries(json-schema-test json-schema-validator)
target_compile_definitions(json-schema-test
PRIVATE