|
@@ -3,10 +3,14 @@ project(gravity VERSION 1.0 LANGUAGES C)
|
|
|
|
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
|
|
+option(BUILD_CLI "Build the command line interface" ON)
|
|
|
+
|
|
|
# ----------------------------------------------------------------
|
|
|
# Library
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
# ----------------------------------------------------------------
|
|
|
# Command Line Interface
|
|
|
-add_subdirectory(src/cli)
|
|
|
+if(BUILD_CLI)
|
|
|
+ add_subdirectory(src/cli)
|
|
|
+endif()
|