add: VirtualDisplay
This commit is contained in:
@@ -1,14 +1,34 @@
|
||||
cmake_minimum_required(VERSION 3.18)
|
||||
|
||||
if (BUILD_VIRTUAL_DISPLAY)
|
||||
set(VCPKG_MANIFEST_FEATURES virtual)
|
||||
endif(BUILD_VIRTUAL_DISPLAY)
|
||||
|
||||
|
||||
project(Frame)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
option(BUILD_EPD
|
||||
"Build EPD Display"
|
||||
OFF
|
||||
)
|
||||
|
||||
#if (UNIX)
|
||||
find_package(fmt CONFIG REQUIRED)
|
||||
|
||||
option(BUILD_VIRTUAL_DISPLAY
|
||||
"Build virtual sfml based display"
|
||||
OFF
|
||||
)
|
||||
|
||||
if (BUILD_EPD)
|
||||
add_subdirectory(bcm2835)
|
||||
add_subdirectory(waveshare)
|
||||
#endif (UNIX)
|
||||
endif (BUILD_EPD)
|
||||
|
||||
if (BUILD_VIRTUAL_DISPLAY)
|
||||
find_package(SFML COMPONENTS system window graphics CONFIG REQUIRED)
|
||||
endif(BUILD_VIRTUAL_DISPLAY)
|
||||
|
||||
add_subdirectory(frame)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user