cnorxz/CMakeLists.txt

26 lines
551 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.8)
project(multi_array)
2018-03-05 21:52:12 +01:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -std=c++11 -Wpedantic -O3 -g -march=native")
2017-03-23 21:05:40 +01:00
enable_testing()
set(INSTALL_PATH ${CMAKE_SOURCE_DIR}/install)
find_package( GTest REQUIRED )
if(GTest_FOUND)
include_directories(${GTEST_INCLUDE_DIRS})
else()
message(FATAL_ERROR "GTest not found")
endif()
2017-11-20 22:30:07 +01:00
find_package(Threads REQUIRED)
if(Threads_FOUND)
2017-12-18 14:02:37 +01:00
#include_directories(${Threads_INCLUDE_DIRS})
2017-11-20 22:30:07 +01:00
else()
message(FATAL_ERROR "Threads not found")
endif()
add_subdirectory(src)