Port from kde4_add_executable to ecm_mark_as_test.
This commit is contained in:
parent
8d7ebc7e89
commit
745b39d905
@ -1,17 +1,21 @@
|
|||||||
include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../includes ${CMAKE_CURRENT_SOURCE_DIR}/../)
|
include_directories(${KDE4_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../includes ${CMAKE_CURRENT_SOURCE_DIR}/../)
|
||||||
|
|
||||||
|
include(ECMMarkAsTest)
|
||||||
|
|
||||||
MACRO(SODEP_UNIT_TESTS)
|
MACRO(SODEP_UNIT_TESTS)
|
||||||
FOREACH(_testname ${ARGN})
|
FOREACH(_testname ${ARGN})
|
||||||
kde4_add_unit_test(${_testname} TESTNAME plasma-sodep-${_testname} NOGUI ${_testname}.cpp)
|
kde4_add_unit_test(${_testname} TESTNAME plasma-sodep-${_testname} NOGUI ${_testname}.cpp)
|
||||||
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
||||||
|
ecm_mark_as_test(${_testname})
|
||||||
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
||||||
ENDFOREACH(_testname)
|
ENDFOREACH(_testname)
|
||||||
ENDMACRO(SODEP_UNIT_TESTS)
|
ENDMACRO(SODEP_UNIT_TESTS)
|
||||||
|
|
||||||
MACRO(SODEP_EXECUTABLE_TESTS)
|
MACRO(SODEP_EXECUTABLE_TESTS)
|
||||||
FOREACH(_testname ${ARGN})
|
FOREACH(_testname ${ARGN})
|
||||||
kde4_add_executable(${_testname} NOGUI TEST ${_testname}.cpp)
|
add_executable(${_testname} NOGUI ${_testname}.cpp)
|
||||||
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
||||||
|
ecm_mark_as_test(${_testname})`
|
||||||
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
||||||
ENDFOREACH(_testname)
|
ENDFOREACH(_testname)
|
||||||
ENDMACRO(SODEP_EXECUTABLE_TESTS)
|
ENDMACRO(SODEP_EXECUTABLE_TESTS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user