Mercurial > hg > Gears > GearsAgda
diff src/parallel_execution/CMakeLists.txt @ 202:42dbe54332a0
add test
author | mir3636 |
---|---|
date | Mon, 19 Dec 2016 19:42:49 +0900 |
parents | 9c85c3a34726 |
children | 25db17f32ac2 |
line wrap: on
line diff
--- a/src/parallel_execution/CMakeLists.txt Mon Dec 19 19:25:54 2016 +0900 +++ b/src/parallel_execution/CMakeLists.txt Mon Dec 19 19:42:49 2016 +0900 @@ -6,15 +6,16 @@ set(CMAKE_C_COMPILER $ENV{CBC_COMPILER}) +add_custom_command ( + OUTPUT c/enumCode.h + COMMAND "perl" "generate_context.pl" +) + macro( GearsCommand ) set( _OPTIONS_ARGS ) set( _ONE_VALUE_ARGS TARGET ) set( _MULTI_VALUE_ARGS SOURCES ) cmake_parse_arguments( _Gears "${_OPTIONS_ARGS}" "${_ONE_VALUE_ARGS}" "${_MULTI_VALUE_ARGS}" ${ARGN} ) - add_custom_command ( - OUTPUT c/enumCode.h - COMMAND "perl" "generate_context.pl" ${_Gears_SOURCES} - ) add_executable(${_Gears_TARGET} ${_Gears_SOURCES} context.c c/enumCode.h ) endmacro() @@ -25,3 +26,16 @@ main.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c ) +GearsCommand( + TARGET + test/stack_test + SOURCES + test/stack_test.c stack.c +) + +GearsCommand( + TARGET + test/queue_test + SOURCES + test/queue_test.c queue.c +}