diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 1ab2fd65..bc461a0e 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -3,7 +3,7 @@ macro (build arg) # Add headers to sources to enable file browsing in IDEs include_directories("${CMAKE_SOURCE_DIR}/tests") add_executable("Sqlpp11Example${arg}" "${arg}.cpp" ${sqlpp_headers} "${CMAKE_SOURCE_DIR}/tests/MockDb.h" "${CMAKE_CURRENT_LIST_DIR}/Sample.h") - add_test("${arg}" "${arg}") + add_test("${arg}" "${CMAKE_BINARY_DIR}/examples/Sqlpp11Example${arg}") endmacro () #build(sample) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 86462e61..022a55ab 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -3,7 +3,7 @@ macro (build_and_run arg) # Add headers to sources to enable file browsing in IDEs include_directories("${CMAKE_BINARY_DIR}/tests") add_executable("${arg}" "${arg}.cpp" ${sqlpp_headers} "${CMAKE_CURRENT_LIST_DIR}/Sample.h") - add_test("${arg}" "${arg}") + add_test("${arg}" "${CMAKE_BINARY_DIR}/tests/${arg}") endmacro () build_and_run(BooleanExpressionTest)