mirror of
https://github.com/p-ranav/indicators.git
synced 2025-12-16 04:18:51 +08:00
CMake support for building the demo added.
This commit is contained in:
@@ -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()
|
||||
|
||||
2
demo/CMakeLists.txt
Normal file
2
demo/CMakeLists.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
add_executable(demo demo.cpp)
|
||||
target_link_libraries(demo PRIVATE indica::indica)
|
||||
Reference in New Issue
Block a user