Browse Source

Add 'make run' target

master
Riyyi 4 years ago
parent
commit
c6634f1231
  1. 11
      CMakeLists.txt

11
CMakeLists.txt

@ -5,6 +5,15 @@
set(ENGINE "inferno")
# Set project name
set(GAME "game")
# Set debugging, ON/OFF
set(DEBUG "ON")
# ------------------------------------------
# Add 'make run' target
add_custom_target(run
COMMAND ${GAME}
)
# ------------------------------------------
@ -13,7 +22,7 @@ cmake_minimum_required(VERSION 3.1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Check if the build should include debugging symbols
option(DEBUG "" ON)
option(DEBUG "" ${DEBUG})
if(DEBUG)
# cmake -DDEBUG=on .. && make
message("--- Debug ---")

Loading…
Cancel
Save