- set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
- set(MPICH_FLAGS "-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DUSE_STDARG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_PROTOTYPES=1 -DHAVE_SIGNAL_H=1 -DHAVE_SIGACTION=1 -DHAVE_SLEEP=1 -DHAVE_SYSCONF=1")
-
- include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
- include_directories("${CMAKE_CURRENT_BINARY_DIR}/../include/")
-
- add_executable(attr2type attr2type.c ../util/mtest.c)
- add_executable(attrend2 attrend2.c ../util/mtest.c)
- add_executable(attrend attrend.c ../util/mtest.c)
- add_executable(attrerr attrerr.c ../util/mtest.c)
- add_executable(attrerrcomm attrerrcomm.c ../util/mtest.c)
- add_executable(attrerrtype attrerrtype.c ../util/mtest.c)
- add_executable(attric attric.c ../util/mtest.c)
- add_executable(attrorder attrorder.c ../util/mtest.c)
- add_executable(attrordercomm attrordercomm.c ../util/mtest.c)
- add_executable(attrordertype attrordertype.c ../util/mtest.c)
- add_executable(attrt attrt.c ../util/mtest.c)
- add_executable(baseattr2 baseattr2.c ../util/mtest.c)
- add_executable(baseattrcomm baseattrcomm.c ../util/mtest.c)
- add_executable(fkeyval fkeyval.c ../util/mtest.c)
- add_executable(fkeyvalcomm fkeyvalcomm.c ../util/mtest.c)
- add_executable(fkeyvaltype fkeyvaltype.c ../util/mtest.c)
- add_executable(keyval_double_free keyval_double_free.c ../util/mtest.c)
-
-
- target_link_libraries(attr2type simgrid)
- target_link_libraries(attrend2 simgrid)
- target_link_libraries(attrend simgrid)
- target_link_libraries(attrerr simgrid)
- target_link_libraries(attrerrcomm simgrid)
- target_link_libraries(attrerrtype simgrid)
- target_link_libraries(attric simgrid)
- target_link_libraries(attrorder simgrid)
- target_link_libraries(attrordercomm simgrid)
- target_link_libraries(attrordertype simgrid)
- target_link_libraries(attrt simgrid)
- target_link_libraries(baseattr2 simgrid)
- target_link_libraries(baseattrcomm simgrid)
- target_link_libraries(fkeyval simgrid)
- target_link_libraries(fkeyvalcomm simgrid)
- target_link_libraries(fkeyvaltype simgrid)
- target_link_libraries(keyval_double_free simgrid)
-
-
- set_target_properties(attr2type PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrend2 PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrend PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrerr PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrerrcomm PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrerrtype PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attric PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrorder PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrordercomm PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrordertype PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(attrt PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(baseattr2 PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(baseattrcomm PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(fkeyval PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(fkeyvalcomm PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(fkeyvaltype PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
- set_target_properties(keyval_double_free PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")