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