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