# Autogenerated file, run tools/build/setup_cmake.py to regenerate include_directories(%(includepath)s) link_directories(%(libpath)s) set(pytests %(pyexamples)s) math(EXPR timeout "${IMP_TIMEOUT_FACTOR} * 180") if (${IMP_MAX_CHECKS} MATCHES "INTERNAL") set(testarg "--run_quick_test") else() set(testarg "") endif() foreach (test ${pytests}) GET_FILENAME_COMPONENT(name ${test} NAME) add_test("%(name)s.${name}" ${IMP_TEST_SETUP} python ${test} ${testarg}) set_tests_properties("%(name)s.${name}" PROPERTIES LABELS "IMP.%(name)s;example") set_tests_properties("%(name)s.${name}" PROPERTIES TIMEOUT ${timeout}) set_tests_properties("%(name)s.${name}" PROPERTIES COST 3) #add_dependencies(${name} RMFPython) endforeach(test) set(cpp_tests %(cppexamples)s) foreach (test ${cpp_tests}) GET_FILENAME_COMPONENT(name ${test} NAME) GET_FILENAME_COMPONENT(name_we ${test} NAME_WE) add_executable("%(name)s.${name_we}" ${test}) target_link_libraries("%(name)s.${name_we}" imp_%(name)s %(modules)s %(dependencies)s) set_target_properties("%(name)s.${name_we}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/test/%(name)s/" OUTPUT_NAME "${name_we}") add_test("%(name)s.${name}" ${IMP_TEST_SETUP} "${PROJECT_BINARY_DIR}/test/%(name)s/${name_we}${CMAKE_EXECUTABLE_SUFFIX}" ${testarg}) set_tests_properties("%(name)s.${name}" PROPERTIES LABELS "IMP.%(name)s;example") set_tests_properties("%(name)s.${name}" PROPERTIES TIMEOUT ${timeout}) set_tests_properties("%(name)s.${name}" PROPERTIES COST 3) set(executables ${executables} "%(name)s.${name_we}") endforeach(test) add_custom_target("imp_%(name)s_examples" ALL DEPENDS ${executables})