Mercurial > hg > GearsTemplate
annotate src/parallel_execution/CMakeLists.txt @ 199:9c85c3a34726
Cmake macro
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 19 Dec 2016 11:36:18 +0900 |
parents | 4051c012dec3 |
children | 42dbe54332a0 |
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 |
198 | 9 macro( GearsCommand ) |
10 set( _OPTIONS_ARGS ) | |
11 set( _ONE_VALUE_ARGS TARGET ) | |
12 set( _MULTI_VALUE_ARGS SOURCES ) | |
13 cmake_parse_arguments( _Gears "${_OPTIONS_ARGS}" "${_ONE_VALUE_ARGS}" "${_MULTI_VALUE_ARGS}" ${ARGN} ) | |
199 | 14 add_custom_command ( |
15 OUTPUT c/enumCode.h | |
16 COMMAND "perl" "generate_context.pl" ${_Gears_SOURCES} | |
17 ) | |
18 add_executable(${_Gears_TARGET} ${_Gears_SOURCES} context.c c/enumCode.h ) | |
198 | 19 endmacro() |
20 | |
21 GearsCommand( | |
22 TARGET | |
23 twice | |
24 SOURCES | |
199 | 25 main.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c |
86 | 26 ) |
27 |