Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get my crude hack in MSG to compile on both gcc and clang
[simgrid.git] / tools / cmake / DefinePackages.cmake
index 4d566376d9d6068f22302111c8b9cb7dde8a0e6a..b5f53454363f99bb765938b1b1fa8f6326ac895c 100644 (file)
@@ -679,6 +679,7 @@ set(MC_SIMGRID_MC_SRC  src/mc/checker/simgrid_mc.cpp)
 set(headers_to_install
   include/simgrid/actor.h
   include/simgrid/barrier.h
+  include/simgrid/comm.h
   include/simgrid/engine.h
   include/simgrid/Exception.hpp
   include/simgrid/chrono.hpp
@@ -691,7 +692,6 @@ set(headers_to_install
   include/simgrid/smpi/replay.hpp
   include/simgrid/instr.h
   include/simgrid/mailbox.h
-  include/simgrid/msg.h
   include/simgrid/simdag.h
   include/simgrid/modelchecker.h
   include/simgrid/forward.h
@@ -818,10 +818,12 @@ set(simgrid_sources
   ${SIMDAG_SRC}
   )
 
-if(${enable_MSG})
-  set(simgrid_sources ${simgrid_sources}   ${MSG_SRC})
+if(${enable_msg})
+  set(headers_to_install ${headers_to_install}  include/simgrid/msg.h)
+  set(simgrid_sources    ${simgrid_sources}     ${MSG_SRC})
 else()
-  set(EXTRA_DIST      ${EXTRA_DIST}        ${MSG_SRC})
+  set(EXTRA_DIST         ${EXTRA_DIST}          include/simgrid/msg.h
+                                                ${MSG_SRC})
 endif()
 
 if(${SIMGRID_HAVE_JEDULE})
@@ -1001,6 +1003,7 @@ set(txt_files
 # The list of cmake build directories is constructed from the following list.
 # Add your CMakeLists file here to see your subdir built.
 set(CMAKEFILES_TXT
+  examples/c/CMakeLists.txt
   examples/s4u/CMakeLists.txt
   examples/smpi/CMakeLists.txt
   examples/smpi/NAS/CMakeLists.txt