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