Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Since cmake 2.6, else() and endif() don't need to repeat the condition.
[simgrid.git] / examples / msg / token_ring / CMakeLists.txt
index eb4186b..f3e07d4 100644 (file)
@@ -3,13 +3,16 @@ cmake_minimum_required(VERSION 2.6)
 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
 
 add_executable(token_ring ring_call.c)
+add_executable(token_bypass token_bypass.c)
 
 ### Add definitions for compile
 if(NOT WIN32)
   target_link_libraries(token_ring simgrid m pthread )
-else(NOT WIN32)
+  target_link_libraries(token_bypass simgrid m pthread )
+else()
   target_link_libraries(token_ring simgrid)
-endif(NOT WIN32)
+  target_link_libraries(token_bypass simgrid)
+endif()
 
 set(tesh_files
   ${tesh_files}
@@ -23,6 +26,7 @@ set(xml_files
 set(examples_src
   ${examples_src}
   ${CMAKE_CURRENT_SOURCE_DIR}/ring_call.c
+  ${CMAKE_CURRENT_SOURCE_DIR}/token_bypass.c
   PARENT_SCOPE
   )
 set(bin_files