mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-05 20:50:34 -06:00
Fixed paths to test executables for ctest
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user