# # disco/CMakeLists.txt -- # cmake_minimum_required(VERSION 2.6) project(DISCO C) INCLUDE(FindThreads) add_executable(disco disco.c) add_definitions(-DDEBUG) target_link_libraries(disco ${CMAKE_THREAD_LIBS_INIT}) if(UNIX AND NOT APPLE) target_link_libraries(disco rt) endif() set_property(SOURCE disco.c APPEND PROPERTY COMPILE_FLAGS "--std=c99 -Wall")