cmake: fix test include and defines.

TESTS_WD is prefixed to TESTS_SRC_DIR and should be empty (no idea why
it's like that, maybe to allow relative paths).

TESTS_SRC_DIR must be defined to test source directory and a typo was
preventing that.
This commit is contained in:
Gustavo Sverzut Barbieri 2017-01-26 13:54:19 -02:00
parent b67acda0d6
commit 51307b7cdc
1 changed files with 3 additions and 3 deletions

View File

@ -1169,7 +1169,7 @@ function(EFL_TEST _testname)
endif()
target_include_directories(${_testtarget} PRIVATE
${_testrcdir}
${_testsrcdir}
${_testbindir}
${INCLUDE_DIRECTORIES})
target_include_directories(${_testtarget} SYSTEM PRIVATE
@ -1182,9 +1182,9 @@ function(EFL_TEST _testname)
target_compile_definitions(${_testtarget} PRIVATE
"-DPACKAGE_DATA_DIR=\"${EFL_TESTS_SOURCE_DIR}\""
"-DTESTS_SRC_DIR=\"${_testrcdir}\""
"-DTESTS_SRC_DIR=\"${_testsrcdir}\""
"-DTESTS_BUILD_DIR=\"${_testbindir}\""
"-DTESTS_WD=\"${PROJECT_BINARY_DIR}\""
"-DTESTS_WD=\"\""
${DEFINITIONS}
)