# # wc/CMakeLists.txt -- # cmake_minimum_required(VERSION 2.6) project(WC C) INCLUDE(FindThreads) add_executable(wc wc.c) target_link_libraries(wc ${CMAKE_THREAD_LIBS_INIT}) if(CMAKE_COMPILER_IS_GNUCC) add_definitions(--std=c99 -Wall) endif()