Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A user found that old junk in our attic.
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 17 Feb 2016 15:20:45 +0000 (16:20 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Wed, 17 Feb 2016 15:20:45 +0000 (16:20 +0100)
Don't let it happen again. To the dumpster!

doc/HelloWorld/CMakeLists.txt [deleted file]
doc/HelloWorld/HelloWorld.c [deleted file]
doc/HelloWorld/README [deleted file]
tools/cmake/DefinePackages.cmake

diff --git a/doc/HelloWorld/CMakeLists.txt b/doc/HelloWorld/CMakeLists.txt
deleted file mode 100644 (file)
index 02d42f5..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-### This is a template for building targets with simgrid
-cmake_minimum_required(VERSION 2.8)
-
-### Need to set rc ccompiler before enable language
-if(WIN32)
-  SET(CMAKE_RC_COMPILER "windres")
-  set(LIBRARIES_DEP simgrid ws2_32 pthread)
-else()
-  set(LIBRARIES_DEP simgrid pthread)
-endif()
-
-project(MY_SIMGRID_PROJECT C)
-
-set(CMAKE_C_FLAGS "" CACHE TYPE INTERNAL FORCE)
-set(CMAKE_EXE_LINKER_FLAGS "" CACHE TYPE INTERNAL FORCE)
-
-###############################
-# Test the build dependencies #
-###############################
-message(STATUS "Looking for lib Simgrid")
-if("$ENV{SIMGRID_ROOT}" STREQUAL "")
-  message(STATUS "Looking for lib Simgrid - Not found")
-  message(FATAL_ERROR "Simgrid not found, reinstall it or set SIMGRID_ROOT")
-else()
-  link_directories($ENV{SIMGRID_ROOT}/lib)
-  include_directories($ENV{SIMGRID_ROOT}/include)
-  include_directories($ENV{SIMGRID_ROOT}/src)
-  include_directories($ENV{SIMGRID_ROOT}/src/include)
-  message(STATUS "Looking for lib Simgrid - found")
-endif()
-
-################
-# FIND TARGETS #
-################
-file(GLOB SOURCE_FILE
-  RELATIVE ${CMAKE_HOME_DIRECTORY}/
-  "*.c"
-  )
-string(REPLACE ".c" "" TARGET_NAME ${SOURCE_FILE})
-
-foreach(target "${TARGET_NAME}")
-  add_executable(${target} "${target}.c")
-  message(STATUS "source_file: ${target}.c")
-  message(STATUS "target name: ${target}.exe")
-  # Any targets need to be linked with libraries
-  target_link_libraries(${target} ${LIBRARIES_DEP})
-endforeach(target ${SOURCE_FILE})
diff --git a/doc/HelloWorld/HelloWorld.c b/doc/HelloWorld/HelloWorld.c
deleted file mode 100644 (file)
index 72c6d04..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-/* Copyright (c) 2011-2012, 2014. The SimGrid Team.
- * All rights reserved.                                                     */
-
-/* This program is free software; you can redistribute it and/or modify it
- * under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include <stdio.h>
-#include "xbt/log.h"
-XBT_LOG_NEW_DEFAULT_CATEGORY(HelloWorld,
-                             "Messages specific for this Hello World example");
-void main()
-{
-  XBT_INFO("Hello World !!!");
-}
diff --git a/doc/HelloWorld/README b/doc/HelloWorld/README
deleted file mode 100644 (file)
index 67b0585..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-This is a very simple example to explain how to compile with simgrid.
-
-1) How to compile an example: (HelloWorld)
-
-- Run windows shell "cmd".
-- Open HelloWorld Directory ('cd' command line).
-- Create a build directory and change directory. (optional)
-- Type 'cmake -G"MinGW Makefiles" <path_to_HelloWorld_project>'
-- Run mingw32-make
-- You should obtain a runnable example ("HelloWorld.exe").
-
-2) Content of this directory
-
-- HelloWorld.c 
-       The example source file.
-- CMakeLists.txt
-       It allows to configure the project.
-- README
-       This explaination.
-       
-3) How to add and compile a new example
-
-- Put your source file into the helloWord directory.
-- Edit CMakeLists.txt :
-       * In the Targets section add those two lines:
-               add_executable(TARGET_NAME SOURCES)
-               target_link_libraries(TARGET_NAME simgrid) 
-       * It creates a target called 'TARGET_NAME.exe' with the sources 'SOURCES'.
-- To initialize your project, you'll need to run 'cmake -G"Unix Makefiles" <path_to_HelloWorld_project>.'
-- To build you project, run "cmake ." 
-- Run "gmake"
-- You should obtain "TARGET_NAME.exe".
\ No newline at end of file
index 1979185..837563d 100644 (file)
@@ -856,10 +856,6 @@ set(DOC_SOURCES
   doc/triva-time_interval.png
   doc/triva-time_interval.svg
 
-  doc/HelloWorld/CMakeLists.txt
-  doc/HelloWorld/HelloWorld.c
-  doc/HelloWorld/README
-
   doc/doxygen/FAQ.doc
   doc/doxygen/advanced.doc
   doc/doxygen/bindings.doc