doasku

Sudoku solver
git clone git://git.dimitrijedobrota.com/doasku.git
Log | Files | Refs | README | LICENSE

CMakeLists.txt (909B)


      1 cmake_minimum_required(VERSION 3.14)
      2 
      3 include(cmake/prelude.cmake)
      4 
      5 project(
      6     doasku
      7     VERSION 0.0.3
      8     DESCRIPTION "Sudoku madness"
      9     HOMEPAGE_URL "https://git.dimitrijedobrota.com/doasku.git"
     10     LANGUAGES CXX
     11 )
     12 
     13 include(cmake/project-is-top-level.cmake)
     14 include(cmake/variables.cmake)
     15 
     16 # ---- Declare executable ----
     17 
     18 add_executable(doasku_exe source/main.cpp source/grid.cpp source/ref.cpp)
     19 add_executable(doasku::exe ALIAS doasku_exe)
     20 
     21 set_property(TARGET doasku_exe PROPERTY OUTPUT_NAME doasku)
     22 
     23 target_compile_features(doasku_exe PRIVATE cxx_std_20)
     24 
     25 # ---- Install rules ----
     26 
     27 if(NOT CMAKE_SKIP_INSTALL_RULES)
     28   include(cmake/install-rules.cmake)
     29 endif()
     30 
     31 # ---- Developer mode ----
     32 
     33 if(NOT doasku_DEVELOPER_MODE)
     34   return()
     35 elseif(NOT PROJECT_IS_TOP_LEVEL)
     36   message(
     37       AUTHOR_WARNING
     38       "Developer mode is intended for developers of doasku"
     39   )
     40 endif()
     41 
     42 include(cmake/dev-mode.cmake)