katie/tests/auto/qdbusmarshall/CMakeLists.txt
Ivailo Monev 15fbd29fb0 tests build fix for the case when build in source directory
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-12-09 05:01:57 +00:00

19 lines
No EOL
638 B
CMake

if(WITH_DBUS AND DBUS_FOUND)
include_directories(${DBUS_INCLUDES})
katie_dbus_test(tst_qdbusmarshall
${CMAKE_CURRENT_SOURCE_DIR}/tst_qdbusmarshall.cpp
${CMAKE_CURRENT_SOURCE_DIR}/common.h
)
target_link_libraries(tst_qdbusmarshall ${DBUS_LIBRARIES})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
katie_setup_target(qdbusmarshall_qpong
${CMAKE_CURRENT_SOURCE_DIR}/qpong/qpong.cpp
${CMAKE_CURRENT_SOURCE_DIR}/common.h
)
add_executable(qdbusmarshall_qpong ${qdbusmarshall_qpong_SOURCES})
target_link_libraries(qdbusmarshall_qpong KtCore KtDBus)
endif()