King_DuckZ
9d63269bfa
I don't know why this was included not as a submodule or a regular dependency, but it looks wrong to me. Re-added as submodule.
25 lines
625 B
CMake
25 lines
625 B
CMake
cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
|
|
cmake_policy(SET CMP0048 NEW)
|
|
|
|
include(CTest)
|
|
|
|
add_subdirectory(googletest)
|
|
set(GTEST_MAIN_CPP "${CMAKE_CURRENT_SOURCE_DIR}/googletest/googletest/src/gtest_main.cc")
|
|
set(UNITTEST_DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../data")
|
|
|
|
include_directories(SYSTEM
|
|
${CMAKE_CURRENT_SOURCE_DIR}/googletest/googletest/include
|
|
)
|
|
|
|
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
|
|
)
|
|
|
|
add_subdirectory(unit)
|
|
add_subdirectory(unit_noconv)
|