diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-01-22 16:25:08 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-01-22 16:25:08 +0000 |
commit | cebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7 (patch) | |
tree | e8fe44f46d58522b2f2148cb575cc89fc9ba6ad7 /app/v3_c/CMakeLists.txt | |
parent | 738943804f2e4005e1948ed19e0d02e4cd1df431 (diff) | |
download | 2011-usi-cebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7.tar.gz 2011-usi-cebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7.tar.bz2 2011-usi-cebbe1cd7fe8be10d51a1d8fc4007407b1ba77c7.zip |
Première version du projet qui compile ! (utilise CMake)
git-svn-id: file:///var/svn/2011-usi/trunk@10 db941bf7-0cb3-4dda-9634-87faf64f93a7
Diffstat (limited to 'app/v3_c/CMakeLists.txt')
-rw-r--r-- | app/v3_c/CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/app/v3_c/CMakeLists.txt b/app/v3_c/CMakeLists.txt new file mode 100644 index 0000000..d20e952 --- /dev/null +++ b/app/v3_c/CMakeLists.txt @@ -0,0 +1,28 @@ +cmake_minimum_required (VERSION 2.6) +project (MyHttpd C) + +# The version number. +set (MYHTTPD_VERSION_MAJOR 0) +set (MYHTTPD_VERSION_MINOR 1) + +set(TEST_SCRIPTS_PATH ${PROJECT_SOURCE_DIR}/src/test) + +# Include the directory itself as a path to include directories +set(CMAKE_INCLUDE_CURRENT_DIR ON) +#set(INCLUDE_DIRECTORIES "${PROJECT_SOURCE_DIR}/include") +set(INCLUDE_DIRECTORIES src/include) +# add the binary tree to the search path for include files +# so that we will find netlem.h and netlem_ds.h +include_directories("${INCLUDE_DIRECTORIES}" "${PROJECT_BINARY_DIR}") + +add_definitions(-Wall -Wextra -pedantic -Werror -std=c99 -D_POSIX_SOURCE -g) +add_definitions(-pg) +set (CMAKE_EXE_LINKER_FLAGS -pg) + +add_subdirectory(src) +add_subdirectory(src/test) + +set(ENV{LC_ALL} C) + +enable_testing() +add_test(testfunc000_env ${TEST_SCRIPTS_PATH}/testfunc_000_env.sh) |