CMakeLists.txt 485 B

12345678910111213141516171819
  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. project(ccats)
  5. # dependencies used by server and tests
  6. find_package(Threads REQUIRED)
  7. find_package(Boost 1.70 REQUIRED COMPONENTS system filesystem)
  8. find_package(Jsoncpp REQUIRED)
  9. add_subdirectory(../libs/libbcrypt/ ${CMAKE_BINARY_DIR}/libbcrypt)
  10. include(src/CMakeLists.txt)
  11. if(ENABLE_TESTS)
  12. include(test/CMakeLists.txt)
  13. endif()