Mercurial > hg > Members > Moririn
annotate src/parallel_execution/CMakeLists.txt @ 208:b6ffdd99e525
fix generate_context
author | mir3636 |
---|---|
date | Tue, 20 Dec 2016 19:39:51 +0900 |
parents | 1b15f02ec713 |
children | ba56dab79dc4 |
rev | line source |
---|---|
86 | 1 cmake_minimum_required(VERSION 2.8) |
2 | |
101 | 3 # -DUSE_CUDA |
138 | 4 # add_definitions("-Wall -g -O") |
137 | 5 add_definitions("-Wall -g") |
86 | 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 |
202 | 9 add_custom_command ( |
10 OUTPUT c/enumCode.h | |
11 COMMAND "perl" "generate_context.pl" | |
12 ) | |
13 | |
198 | 14 macro( GearsCommand ) |
15 set( _OPTIONS_ARGS ) | |
16 set( _ONE_VALUE_ARGS TARGET ) | |
17 set( _MULTI_VALUE_ARGS SOURCES ) | |
18 cmake_parse_arguments( _Gears "${_OPTIONS_ARGS}" "${_ONE_VALUE_ARGS}" "${_MULTI_VALUE_ARGS}" ${ARGN} ) | |
205 | 19 add_executable(${_Gears_TARGET} ${_Gears_SOURCES} context.c c/enumCode.h) |
198 | 20 endmacro() |
21 | |
22 GearsCommand( | |
23 TARGET | |
24 twice | |
25 SOURCES | |
205 | 26 main.c 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 test/queue_test.c queue.c |
86 | 27 ) |
28 | |
202 | 29 GearsCommand( |
30 TARGET | |
31 test/stack_test | |
32 SOURCES | |
205 | 33 main.c 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 test/queue_test.c queue.c |
202 | 34 ) |
35 | |
36 GearsCommand( | |
37 TARGET | |
38 test/queue_test | |
39 SOURCES | |
208 | 40 TaskManager.c main.c 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 test/queue_test.c queue.c |
203 | 41 ) |