CMakeLists.txt 538 B

1234567891011121314151617181920
  1. cmake_minimum_required(VERSION 3.7...3.18)
  2. if(${CMAKE_VERSION} VERSION_LESS 3.12)
  3. cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
  4. endif()
  5. project(sudoku VERSION 0.1
  6. DESCRIPTION "Constraint Logic Programming Sudoku solver"
  7. LANGUAGES CXX)
  8. add_library(clp lib/clp/clp.hpp)
  9. add_library(util lib/util/util.hpp)
  10. set_target_properties(clp util PROPERTIES LINKER_LANGUAGE CXX)
  11. add_executable(sudoku src/sudoku.cpp)
  12. target_include_directories(sudoku PRIVATE lib)
  13. target_compile_features(sudoku PUBLIC cxx_std_20)