# Autogenerated file, run tools/build/setup_cmake.py to regenerate include_directories(${BOOST.FILESYSTEM_INCLUDE_PATH} ${BOOST.PROGRAMOPTIONS_INCLUDE_PATH} ${BOOST.RANDOM_INCLUDE_PATH} ${BOOST.SYSTEM_INCLUDE_PATH} ${GPERFTOOLS_INCLUDE_PATH} ${LOG4CXX_INCLUDE_PATH} ${TCMALLOC_HEAPCHECKER_INCLUDE_PATH} ${TCMALLOC_HEAPPROFILER_INCLUDE_PATH}) link_directories(${BOOST.FILESYSTEM_LINK_PATH} ${BOOST.PROGRAMOPTIONS_LINK_PATH} ${BOOST.RANDOM_LINK_PATH} ${BOOST.SYSTEM_LINK_PATH} ${GPERFTOOLS_LINK_PATH} ${LOG4CXX_LINK_PATH} ${TCMALLOC_HEAPCHECKER_LINK_PATH} ${TCMALLOC_HEAPPROFILER_LINK_PATH}) set(pytests ) 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("test.${name}" ${IMP_TEST_SETUP} python ${test} ${testarg}) set_tests_properties("test.${name}" PROPERTIES LABELS "IMP.test;example") set_tests_properties("test.${name}" PROPERTIES TIMEOUT ${timeout}) set_tests_properties("test.${name}" PROPERTIES COST 3) #add_dependencies(${name} RMFPython) endforeach(test) set(cpp_tests ) foreach (test ${cpp_tests}) GET_FILENAME_COMPONENT(name ${test} NAME) GET_FILENAME_COMPONENT(name_we ${test} NAME_WE) add_executable("test.${name_we}" ${test}) target_link_libraries("test.${name_we}" imp_test ${IMP_BASE_LIBRARY} ${BOOST.FILESYSTEM_LIBRARIES} ${BOOST.PROGRAMOPTIONS_LIBRARIES} ${BOOST.SYSTEM_LIBRARIES} ${GPERFTOOLS_LIBRARIES} ${TCMALLOC_HEAPPROFILER_LIBRARIES} ${TCMALLOC_HEAPCHECKER_LIBRARIES} ${LOG4CXX_LIBRARIES} ${BOOST.RANDOM_LIBRARIES}) set_target_properties("test.${name_we}" PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/test/test/" OUTPUT_NAME "${name_we}") add_test("test.${name}" ${IMP_TEST_SETUP} "${PROJECT_BINARY_DIR}/test/test/${name_we}${CMAKE_EXECUTABLE_SUFFIX}" ${testarg}) set_tests_properties("test.${name}" PROPERTIES LABELS "IMP.test;example") set_tests_properties("test.${name}" PROPERTIES TIMEOUT ${timeout}) set_tests_properties("test.${name}" PROPERTIES COST 3) set(executables ${executables} "test.${name_we}") endforeach(test) add_custom_target("imp_test_examples" ALL DEPENDS ${executables})