mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
441 B
13 lines
441 B
|
16 years ago
|
if(QT4_FOUND)
|
||
|
|
function(magnum_add_test test_name moc_header source_file)
|
||
|
|
foreach(library ${ARGN})
|
||
|
|
set(libraries ${library} ${libraries})
|
||
|
|
endforeach()
|
||
|
|
|
||
|
|
qt4_wrap_cpp(${test_name}_MOC ${moc_header})
|
||
|
|
add_executable(${test_name} ${source_file} ${${test_name}_MOC})
|
||
|
|
target_link_libraries(${test_name} ${libraries} ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY})
|
||
|
|
add_test(${test_name} ${test_name})
|
||
|
|
endfunction()
|
||
|
|
endif()
|