2015-07-23 21:10:03 +00:00
|
|
|
cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
|
2019-01-19 11:06:49 +00:00
|
|
|
cmake_policy(SET CMP0048 NEW)
|
2015-07-23 21:10:03 +00:00
|
|
|
|
2016-11-02 00:14:47 +00:00
|
|
|
include(CTest)
|
|
|
|
|
2015-07-23 21:10:03 +00:00
|
|
|
add_subdirectory(gtest-1.7.0)
|
2019-01-19 11:06:49 +00:00
|
|
|
set(GTEST_MAIN_CPP "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.7.0/src/gtest_main.cc")
|
|
|
|
set(UNITTEST_DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../data")
|
2015-07-23 21:10:03 +00:00
|
|
|
|
|
|
|
include_directories(SYSTEM
|
2019-01-19 11:06:49 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.7.0/include
|
2015-07-23 21:10:03 +00:00
|
|
|
)
|
2017-03-11 08:45:11 +00:00
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -std=c++11")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -std=c++11")
|
|
|
|
|
|
|
|
add_definitions(
|
|
|
|
-Wall
|
|
|
|
-Wextra
|
|
|
|
-Wpedantic
|
|
|
|
-Wconversion
|
|
|
|
)
|
|
|
|
|
2015-07-23 21:10:03 +00:00
|
|
|
add_subdirectory(unit)
|
2016-11-02 00:14:47 +00:00
|
|
|
add_subdirectory(unit_noconv)
|