cmake: fix test include and defines.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 26 Jan 2017 15:54:19 +0000 (13:54 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 26 Jan 2017 16:23:24 +0000 (14:23 -0200)
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.

cmake/helpers/EflMacros.cmake

index b2630a8..fa64750 100644 (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}
     )