~ubuntu-branches/ubuntu/raring/simgrid/raring

« back to all changes in this revision

Viewing changes to examples/gras/mutual_exclusion/simple_token/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Martin Quinson
  • Date: 2013-01-31 00:24:51 UTC
  • mfrom: (10.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20130131002451-krejhf7w7h24lpsc
Tags: 3.9~rc1-1
* New upstream release: the "Grasgory" release. Major changes:
  - Gras was completely removed from this version.
  - Documentation reorganization to ease browsing it.
  - New default value for the TCP_gamma parameter: 4MiB

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cmake_minimum_required(VERSION 2.6)
2
 
 
3
 
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/_simple_token_simulator.c
4
 
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_simple_token_node.c
5
 
                                                        PROPERTIES GENERATED true)
6
 
 
7
 
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
8
 
 
9
 
add_executable(simple_token_simulator   ${CMAKE_CURRENT_BINARY_DIR}/_simple_token_simulator.c
10
 
                                                                                ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.c)
11
 
add_executable(simple_token_node        ${CMAKE_CURRENT_BINARY_DIR}/_simple_token_node.c
12
 
                                                                        ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.c)
13
 
                                                                        
14
 
add_custom_command(
15
 
                                        OUTPUT  ${CMAKE_CURRENT_BINARY_DIR}/_simple_token_simulator.c 
16
 
                                                ${CMAKE_CURRENT_BINARY_DIR}/_simple_token_node.c 
17
 
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.xml
18
 
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator simple_token ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.xml
19
 
                    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
20
 
                                        )
21
 
 
22
 
### Add definitions for compile
23
 
if(NOT WIN32)
24
 
target_link_libraries(simple_token_simulator simgrid pthread m )
25
 
target_link_libraries(simple_token_node gras pthread m )
26
 
else(NOT WIN32)
27
 
target_link_libraries(simple_token_simulator simgrid)
28
 
target_link_libraries(simple_token_node gras)
29
 
endif(NOT WIN32)
30
 
 
31