# # worker/CMakeLists.txt -- # cmake_minimum_required(VERSION 2.6) project(WORKER C) INCLUDE(FindThreads) add_executable(worker worker.c) add_definitions(-D_REENTRANT -D_BSD_SOURCE) target_link_libraries(worker ${CMAKE_THREAD_LIBS_INIT}) set_property(SOURCE worker.c APPEND PROPERTY COMPILE_FLAGS "--std=c99 -Wall")