Skip to content

Commit

Permalink
added CMakeLists.txt; moved hand-maid Makefile to Makefile.orig
Browse files Browse the repository at this point in the history
  • Loading branch information
snikulov committed Mar 28, 2012
1 parent 1a8e4d4 commit 1df1c78
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# CMake build generator PPT book
#

# we're using v2.8+ by default
cmake_minimum_required(VERSION 2.8.0 FATAL_ERROR)

# preferred threading lib is - POSIX
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)

find_package(Threads REQUIRED)

# build alarm_mutex
add_executable(alarm_mutex alarm_mutex.c)
target_link_libraries(alarm_mutex ${CMAKE_THREAD_LIBS_INIT})

# build backoff
add_executable(backoff backoff.c)
target_link_libraries(backoff ${CMAKE_THREAD_LIBS_INIT})
File renamed without changes.

0 comments on commit 1df1c78

Please sign in to comment.