From fe388597152ff0db3ed096c401b9fa27255ee501 Mon Sep 17 00:00:00 2001 From: offa Date: Mon, 16 Dec 2019 18:49:06 +0100 Subject: [PATCH] CMake support for building the demo added. --- CMakeLists.txt | 5 +++++ demo/CMakeLists.txt | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 demo/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index f1b9248..08d7903 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.8) project(indica VERSION 1.0.0 LANGUAGES CXX) option(INDICA_BUILD_TESTS OFF) option(SAMPLES "Build Samples" OFF) +option(DEMO "Build Demo" OFF) include(CMakePackageConfigHelpers) include(GNUInstallDirs) @@ -18,6 +19,10 @@ target_include_directories(indica INTERFACE target_link_libraries(indica INTERFACE Threads::Threads) +if( DEMO ) + add_subdirectory(demo) +endif() + if( SAMPLES ) add_subdirectory(samples) endif() diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt new file mode 100644 index 0000000..b64f8b9 --- /dev/null +++ b/demo/CMakeLists.txt @@ -0,0 +1,2 @@ +add_executable(demo demo.cpp) +target_link_libraries(demo PRIVATE indica::indica)