2019-04-23 08:17:34 +10:00
|
|
|
###############################################################################
|
|
|
|
cmake_minimum_required(VERSION 3.8.0)
|
|
|
|
project(emory CXX)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
|
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
|
|
include (nc)
|
|
|
|
|
|
|
|
include_directories(.)
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
option (TESTS "enable unit testing" ON)
|
|
|
|
if (TESTS)
|
|
|
|
enable_testing ()
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
add_subdirectory(cruft/util)
|
|
|
|
add_subdirectory(cruft/crypto)
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
2019-04-23 21:34:01 +10:00
|
|
|
foreach (t emory emory-compare)
|
|
|
|
add_executable ("${t}" "${t}.cpp")
|
|
|
|
target_link_libraries("${t}" cruft-crypto cruft-util)
|
|
|
|
endforeach()
|