Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
various cleanups in the CMakeLists.txt files
[simgrid.git] / teshsuite / smpi / mpich3-test / attr / CMakeLists.txt
index 0eda4eb..90eba93 100644 (file)
@@ -1,5 +1,3 @@
-cmake_minimum_required(VERSION 2.6)
-
 if(enable_smpi AND enable_smpi_MPICH3_testsuite)
   if(WIN32)
     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
@@ -8,9 +6,7 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite)
     set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
   endif()
 
-  set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
-
-  include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
+  include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
 
   add_executable(attr2type attr2type.c)
@@ -19,7 +15,7 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite)
   add_executable(attrerr attrerr.c)
   add_executable(attrerrcomm attrerrcomm.c)
   add_executable(attrerrtype attrerrtype.c)
-  add_executable(attric attric.c)
+#  add_executable(attric attric.c)
   add_executable(attrorder attrorder.c)
   add_executable(attrordercomm attrordercomm.c)
   add_executable(attrordertype attrordertype.c)
@@ -27,9 +23,9 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite)
   add_executable(baseattr2 baseattr2.c)
   add_executable(baseattrcomm baseattrcomm.c)
   add_executable(fkeyval fkeyval.c)
-  add_executable(fkeyvalcomm fkeyvalcomm.c)
-  add_executable(fkeyvaltype fkeyvaltype.c)
-  add_executable(keyval_double_free keyval_double_free.c)
+#  add_executable(fkeyvalcomm fkeyvalcomm.c)
+#  add_executable(fkeyvaltype fkeyvaltype.c)
+#  add_executable(keyval_double_free keyval_double_free.c)
 
   target_link_libraries(attr2type simgrid mtest_c)
   target_link_libraries(attrend2 simgrid mtest_c)
@@ -37,7 +33,7 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite)
   target_link_libraries(attrerr simgrid mtest_c)
   target_link_libraries(attrerrcomm simgrid mtest_c)
   target_link_libraries(attrerrtype simgrid mtest_c)
-  target_link_libraries(attric simgrid mtest_c)
+#  target_link_libraries(attric simgrid mtest_c)
   target_link_libraries(attrorder simgrid mtest_c)
   target_link_libraries(attrordercomm simgrid mtest_c)
   target_link_libraries(attrordertype simgrid mtest_c)
@@ -45,20 +41,12 @@ if(enable_smpi AND enable_smpi_MPICH3_testsuite)
   target_link_libraries(baseattr2 simgrid mtest_c)
   target_link_libraries(baseattrcomm simgrid mtest_c)
   target_link_libraries(fkeyval simgrid mtest_c)
-  target_link_libraries(fkeyvalcomm simgrid mtest_c)
-  target_link_libraries(fkeyvaltype simgrid mtest_c)
-  target_link_libraries(keyval_double_free simgrid mtest_c)
+#  target_link_libraries(fkeyvalcomm simgrid mtest_c)
+#  target_link_libraries(fkeyvaltype simgrid mtest_c)
+#  target_link_libraries(keyval_double_free simgrid mtest_c)
 
 endif()
 
-set(tesh_files
-  ${tesh_files}
-  PARENT_SCOPE
-  )
-set(xml_files
-  ${xml_files}
-  PARENT_SCOPE
-  )
 set(examples_src
   ${examples_src}
   ${CMAKE_CURRENT_SOURCE_DIR}/attr2type.c
@@ -78,14 +66,8 @@ set(examples_src
   ${CMAKE_CURRENT_SOURCE_DIR}/fkeyvalcomm.c
   ${CMAKE_CURRENT_SOURCE_DIR}/fkeyvaltype.c
   ${CMAKE_CURRENT_SOURCE_DIR}/keyval_double_free.c
-  PARENT_SCOPE
-  )
-set(bin_files
-  ${bin_files}
-  PARENT_SCOPE
-  )
+  PARENT_SCOPE)
 set(txt_files
   ${txt_files}
   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
-  PARENT_SCOPE
-  )
+  PARENT_SCOPE)