summaryrefslogtreecommitdiff
blob: ba706901e26925cba5829ea8979507382a4dc013 (plain)
1
2
3
4
5
6
7
8
9
10
11
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project("Zero of One")

include(FindPkgConfig)

add_subdirectory(src)
set(CMAKE_C_FLAGS "-D_POSIX_SOURCE -std=c99 -O2")
# ${SRC_FILES} is recursively defined in the subdirectories.
# Each subdirectory only adds the source files that are present at its level.
add_executable(zero_of_one ${SRC_FILES})