mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-24 19:02:51 +00:00
24 lines
589 B
CMake
24 lines
589 B
CMake
configure_file(config-ktnef-tests.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ktnef-tests.h)
|
|
|
|
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
include_directories(
|
|
${CMAKE_SOURCE_DIR}/ktnef
|
|
${CMAKE_BINARY_DIR}/ktnef
|
|
)
|
|
|
|
macro(add_ktnef_test _source)
|
|
set(_test ${_source})
|
|
get_filename_component(_name ${_source} NAME_WE)
|
|
kde4_add_unit_test(${_name} TESTNAME ktnef-${_name} ${_test})
|
|
target_link_libraries(${_name}
|
|
ktnef
|
|
${QT_QTTEST_LIBRARY}
|
|
${QT_QTCORE_LIBRARY}
|
|
${QT_QTGUI_LIBRARY}
|
|
${KDE4_KDECORE_LIBS}
|
|
)
|
|
endmacro()
|
|
|
|
add_ktnef_test(parsertest.cpp)
|
|
|