view src/parallel_execution/CMakeLists.txt @ 188:6ab77dec8b6a

add command execution in CMakeList.txt
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 16 Dec 2016 13:05:03 +0900
parents 04a2f486a30d
children 4051c012dec3
line wrap: on
line source

cmake_minimum_required(VERSION 2.8)

# -DUSE_CUDA
#  add_definitions("-Wall -g -O")
add_definitions("-Wall -g")

set(CMAKE_C_COMPILER $ENV{CBC_COMPILER})

 
add_custom_command (
      OUTPUT    c/enumCode.h
      COMMAND  "perl" "generate_context.pl"
)


add_executable(twice
               main.c
               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
)