Browse Source

CMake: Automatically build examples during standalone compilation

master
Riyyi 2 years ago
parent
commit
ed935e50cd
  1. 6
      CMakeLists.txt

6
CMakeLists.txt

@ -4,9 +4,13 @@
# Set engine name # Set engine name
set(ENGINE "inferno") set(ENGINE "inferno")
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(INFERNO_STANDALONE TRUE)
endif()
# Options # Options
option(BUILD_SHARED_LIBS "Build shared libraries" OFF) option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
option(INFERNO_BUILD_EXAMPLES "Build the Inferno example programs" OFF) option(INFERNO_BUILD_EXAMPLES "Build the Inferno example programs" ${INFERNO_STANDALONE})
# ------------------------------------------ # ------------------------------------------

Loading…
Cancel
Save