1 ##### Probably don't want to edit below this line #####
3 SET( QT_USE_QTTEST TRUE )
6 INCLUDE( ${QT_USE_FILE} )
8 INCLUDE(AddFileDependencies)
10 # Include the library include directories, and the current build directory (moc)
13 ${CMAKE_CURRENT_BINARY_DIR}
21 FOREACH(test ${UNIT_TESTS})
22 MESSAGE(STATUS "Building ${test}")
23 QT4_WRAP_CPP(MOC_SOURCE ${test}.cpp)
29 ADD_FILE_DEPENDENCIES(${test}.cpp ${MOC_SOURCE})
30 TARGET_LINK_LIBRARIES(
35 if (QJSON_TEST_OUTPUT STREQUAL "xml")
37 add_test( ${test} ${test} -xml -o ${test}.tml )
38 else (QJSON_TEST_OUTPUT STREQUAL "xml")
39 add_test( ${test} ${test} )
40 endif (QJSON_TEST_OUTPUT STREQUAL "xml")