CMakeLists.txt 405 B

12345678910111213141516
  1. cmake_minimum_required(VERSION 3.0)
  2. project(gravity VERSION 1.0 LANGUAGES C)
  3. set(CMAKE_C_STANDARD 99)
  4. option(BUILD_CLI "Build the command line interface" ON)
  5. # ----------------------------------------------------------------
  6. # Library
  7. add_subdirectory(src)
  8. # ----------------------------------------------------------------
  9. # Command Line Interface
  10. if(BUILD_CLI)
  11. add_subdirectory(src/cli)
  12. endif()