annotate src/parallel_execution/CMakeLists.txt @ 210:ba56dab79dc4

separate code init for each executable
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 27 Dec 2016 17:13:45 +0900
parents b6ffdd99e525
children 962fbfe777bb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
86
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
101
8987cf13d5bb Add Allocate macro
innparusu
parents: 98
diff changeset
3 # -DUSE_CUDA
138
04a2f486a30d insert works but is not balanced
kono
parents: 137
diff changeset
4 # add_definitions("-Wall -g -O")
137
909d0548284f fix stackClear
mir3636
parents: 131
diff changeset
5 add_definitions("-Wall -g")
86
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
131
a4507906938c Fix compile error but not work
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 117
diff changeset
7 set(CMAKE_C_COMPILER $ENV{CBC_COMPILER})
188
6ab77dec8b6a add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 138
diff changeset
8
198
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
9 macro( GearsCommand )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
10 set( _OPTIONS_ARGS )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
11 set( _ONE_VALUE_ARGS TARGET )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
12 set( _MULTI_VALUE_ARGS SOURCES )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
13 cmake_parse_arguments( _Gears "${_OPTIONS_ARGS}" "${_ONE_VALUE_ARGS}" "${_MULTI_VALUE_ARGS}" ${ARGN} )
210
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
14 add_custom_command (
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
15 OUTPUT c/${_Gears_TARGET}-context.c
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
16 COMMAND "perl" "generate_context.pl" "-o" ${_Gears_TARGET} ${_Gears_SOURCES}
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
17 )
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
18 add_executable(${_Gears_TARGET} ${_Gears_SOURCES} c/${_Gears_TARGET}-context.c)
198
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
19 endmacro()
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
20
210
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
21
198
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
22 GearsCommand(
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
23 TARGET
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
24 twice
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
25 SOURCES
210
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
26 main.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c stack.c queue.c
86
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 )
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
202
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
29 GearsCommand(
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
30 TARGET
210
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
31 stack_test
202
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
32 SOURCES
210
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
33 rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c test/stack_test.c stack.c queue.c
202
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
34 )
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
35
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
36 GearsCommand(
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
37 TARGET
210
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
38 queue_test
202
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
39 SOURCES
210
ba56dab79dc4 separate code init for each executable
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 208
diff changeset
40 TaskManager.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c stack.c test/queue_test.c queue.c
203
25db17f32ac2 replace Stack for stack
ikkun
parents: 202
diff changeset
41 )