Mercurial > hg > Members > Moririn
annotate src/parallel_execution/CMakeLists.txt @ 198:4051c012dec3
cmake macro
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Dec 2016 21:48:40 +0900 |
parents | 6ab77dec8b6a |
children | 9c85c3a34726 |
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 |
6ab77dec8b6a
add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
138
diff
changeset
|
9 add_custom_command ( |
6ab77dec8b6a
add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
138
diff
changeset
|
10 OUTPUT c/enumCode.h |
6ab77dec8b6a
add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
138
diff
changeset
|
11 COMMAND "perl" "generate_context.pl" |
6ab77dec8b6a
add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
138
diff
changeset
|
12 ) |
6ab77dec8b6a
add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
138
diff
changeset
|
13 |
198 | 14 macro( GearsCommand ) |
188
6ab77dec8b6a
add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
138
diff
changeset
|
15 |
198 | 16 set( _OPTIONS_ARGS ) |
17 set( _ONE_VALUE_ARGS TARGET ) | |
18 set( _MULTI_VALUE_ARGS SOURCES ) | |
19 | |
20 cmake_parse_arguments( _Gears "${_OPTIONS_ARGS}" "${_ONE_VALUE_ARGS}" "${_MULTI_VALUE_ARGS}" ${ARGN} ) | |
21 | |
22 # message("target = ${_Gears_TARGET}") | |
23 # message("sources = ${_Gears_SOURCES}") | |
24 | |
25 add_executable(${_Gears_TARGET} ${_Gears_SOURCES}) | |
26 endmacro() | |
27 | |
28 GearsCommand( | |
29 TARGET | |
30 twice | |
31 SOURCES | |
32 main.c | |
33 context.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c c/enumCode.h | |
86 | 34 ) |
35 |