CMakeLists.txt 449 B

123456789101112131415161718
  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.67 REQUIRED COMPONENTS system filesystem)
  9. find_package(Jsoncpp REQUIRED)
  10. include(src/CMakeLists.txt)
  11. if(ENABLE_TESTS)
  12. include(test/CMakeLists.txt)
  13. endif()