diff --git a/CMakeLists.txt b/CMakeLists.txt index d6d490e..b894234 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,9 +4,13 @@ # Set engine name set(ENGINE "inferno") +if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) + set(INFERNO_STANDALONE TRUE) +endif() + # Options 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}) # ------------------------------------------