58 lines
1.4 KiB
CMake
58 lines
1.4 KiB
CMake
###############################################################################
|
|
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(.)
|
|
|
|
|
|
###############################################################################
|
|
add_library(emory
|
|
acl.cpp
|
|
acl.hpp
|
|
emory/chunk/fwd.cpp
|
|
emory/chunk/fwd.hpp
|
|
emory/chunk/map.cpp
|
|
emory/chunk/map.hpp
|
|
emory/chunk/match.cpp
|
|
emory/chunk/match.hpp
|
|
emory/chunk/ostream.cpp
|
|
emory/chunk/ostream.hpp
|
|
emory/chunk/params.cpp
|
|
emory/chunk/params.hpp
|
|
emory/chunk/region.cpp
|
|
emory/chunk/region.hpp
|
|
emory/fs/acl.cpp
|
|
emory/fs/acl.hpp
|
|
emory/fs/ostream.cpp
|
|
emory/fs/ostream.hpp
|
|
emory/fs/xattr.cpp
|
|
emory/fs/xattr.hpp
|
|
)
|
|
|
|
|
|
target_link_libraries(emory cruft acl)
|
|
|
|
|
|
###############################################################################
|
|
option (TESTS "enable unit testing" ON)
|
|
if (TESTS)
|
|
enable_testing ()
|
|
endif ()
|
|
|
|
|
|
###############################################################################
|
|
add_subdirectory(cruft/util)
|
|
add_subdirectory(cruft/crypto)
|
|
|
|
|
|
###############################################################################
|
|
foreach (t analyse compare stat)
|
|
add_executable ("${t}" "tools/${t}.cpp")
|
|
target_link_libraries("${t}" emory cruft-crypto cruft)
|
|
endforeach()
|