set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
endif()
- set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
- include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
- add_executable(cartcrf cartcrf.f)
-# add_executable(dgraph_unwgtf dgraph_unwgtf.f)
-# add_executable(dgraph_wgtf dgraph_unwgtf.f)
- target_link_libraries(cartcrf simgrid mtest_f77)
-# target_link_libraries(dgraph_wgtf simgrid mtest_f77)
-# target_link_libraries(dgraph_unwgtf simgrid mtest_f77)
+ foreach(test cartcrf
+ # dgraph_unwgtf dgraph_wgtf
+ )
+ add_executable(${test} EXCLUDE_FROM_ALL ${test}.f)
+ add_dependencies(tests ${test})
+ target_link_libraries(${test} simgrid mtest_f77)
+ endforeach()
endif()
set(examples_src