set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -std=c99")
cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
project(trap)
enable_testing()
add_subdirectory(src)
add_subdirectory(test)

cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
project(trap)
enable_testing()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra -std=c99")
add_subdirectory(src)
add_subdirectory(test)

Set CMAKE_C_FLAGS after setting the project.
Set CMAKE_C_FLAGS after setting the project.

* This is a requirement
* Strangely the flags would take affect if cmake was run more than
  once but clean builds would fail.
