Permalink
Browse files

CMake: Add binary paths for tests to the include paths

This fixes #141.
  • Loading branch information...
olesalscheider authored and jlaine committed Sep 6, 2018
1 parent aa84ad0 commit 3b76fabc487103cd2b2700d839423ea87739d5c3
Showing with 3 additions and 0 deletions.
  1. +1 −0 tests/CMakeLists.txt
  2. +1 −0 tests/qxmpptransfermanager/CMakeLists.txt
  3. +1 −0 tests/qxmpputils/CMakeLists.txt
View
@@ -12,6 +12,7 @@ include_directories(${PROJECT_SOURCE_DIR}/src/base)
include_directories(${PROJECT_SOURCE_DIR}/src/client)
include_directories(${PROJECT_SOURCE_DIR}/src/server)
include_directories(${PROJECT_BINARY_DIR}/src/base)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_simple_test(qxmpparchiveiq)
add_simple_test(qxmppbindiq)
@@ -1,3 +1,4 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmpptransfermanager tst_qxmpptransfermanager.cpp tst_qxmpptransfermanager.qrc)
add_test(tst_qxmpptransfermanager tst_qxmpptransfermanager)
target_link_libraries(tst_qxmpptransfermanager Qt5::Test qxmpp)
@@ -1,3 +1,4 @@
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable(tst_qxmpputils tst_qxmpputils.cpp tst_qxmpputils.qrc)
add_test(tst_qxmpputils tst_qxmpputils)
target_link_libraries(tst_qxmpputils Qt5::Test qxmpp)

0 comments on commit 3b76fab

Please sign in to comment.