CMakeLists.txt 517 B

1234567891011121314151617181920
  1. cmake_minimum_required(VERSION 2.8)
  2. set(CMAKE_CXX_STANDARD 17)
  3. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/../.cmake_modules/")
  4. message("${CMAKE_MODULE_PATH}")
  5. project(ccats)
  6. # dependencies used by server and tests
  7. find_package(Threads REQUIRED)
  8. find_package(Boost 1.70 REQUIRED COMPONENTS system filesystem)
  9. find_package(Jsoncpp REQUIRED)
  10. add_subdirectory(../libs/libbcrypt/ ${CMAKE_BINARY_DIR}/libbcrypt)
  11. include(src/CMakeLists.txt)
  12. if(ENABLE_TESTS)
  13. include(test/CMakeLists.txt)
  14. endif()