Commit 59148208 authored by edwin's avatar edwin
Browse files

Architecture project file updates:

	* CMakeLists.txt,
	* tests/core/CMakeLists.txt: New.
parent 4c1f3fc7
cmake_minimum_required(VERSION 2.8)
project(MILENA)
include(FindBoost)
find_package(Boost 1.42 COMPONENTS unit_test_framework REQUIRED)
if(Boost_FOUND)
message(STATUS, "Boost trouvé ${Boost_INCLUDE_DIRS}")
include_directories(${Boost_INCLUDE_DIRS})
else()
message(FATAL_ERROR, "Boost pas trouvé")
endif()
# add source directory to find mln path
include_directories("${PROJECT_SOURCE_DIR}")
set(CMAKE_CXX_FLAGS "-W -Wextra -Wall -std=c++0x")
set(CMAKE_CXX_FLAGS_DEBUG "-W -Wextra -Wall -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "-W -Wextra -Wall -O3 -DNDEBUG")
#
ENABLE_TESTING()
SUBDIRS(tests)
set(CPACK_GENERATOR "TBZ2")
set(CPACK_SOURCE_IGNORE_FILES "/\\\\.git/;.*~;/build/;#.*#")
INCLUDE(CPack)
add_executable(zip_image image/zip_image.cpp)
add_executable(bench_iterator ../bench_iterator.cpp)
add_executable(bench_zip_iterator ../bench_zip_iterator.cpp)
add_executable(copy algorithm/copy.cpp)
add_executable(fill algorithm/fill.cpp)
add_executable(paste algorithm/paste.cpp)
add_executable(equal algorithm/equal.cpp)
add_test(copy copy)
add_test(fill fill)
add_test(paste paste)
add_test(equal equal)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment