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