2016-02-12 10:16:38 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
2016-01-12 14:21:57 +01:00
|
|
|
|
2016-06-01 14:19:17 +02:00
|
|
|
project(cryfs)
|
|
|
|
|
2016-02-11 12:04:49 +01:00
|
|
|
include(utils.cmake)
|
2015-02-17 01:02:15 +01:00
|
|
|
|
2016-02-11 12:53:42 +01:00
|
|
|
require_gcc_version(4.8)
|
2016-03-04 01:29:27 +01:00
|
|
|
require_clang_version(3.7)
|
2015-03-16 02:15:51 +01:00
|
|
|
|
2016-02-14 16:25:21 +01:00
|
|
|
# Default value is not to build test cases
|
2016-02-14 17:06:06 +01:00
|
|
|
if(NOT BUILD_TESTING)
|
2016-02-14 16:25:21 +01:00
|
|
|
set(BUILD_TESTING OFF CACHE INTERNAL "BUILD_TESTING")
|
2016-02-14 17:06:06 +01:00
|
|
|
endif(NOT BUILD_TESTING)
|
|
|
|
|
|
|
|
# Default vaule is to build in release mode
|
|
|
|
if(NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Release CACHE INTERNAL "CMAKE_BUILD_TYPE")
|
|
|
|
endif(NOT CMAKE_BUILD_TYPE)
|
2016-02-14 16:25:21 +01:00
|
|
|
|
2016-02-10 00:58:03 +01:00
|
|
|
add_subdirectory(vendor)
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(test)
|
2016-02-11 17:34:08 +01:00
|
|
|
add_subdirectory(cpack)
|