add: VirtualDisplay
This commit is contained in:
@@ -1,17 +1,44 @@
|
||||
|
||||
set(target frame)
|
||||
|
||||
configure_file (
|
||||
"${PROJECT_SOURCE_DIR}/frame/src/Config.h.in"
|
||||
"${PROJECT_SOURCE_DIR}/frame/src/Config.h"
|
||||
)
|
||||
|
||||
set(src
|
||||
src/main.cpp
|
||||
src/Image.hpp
|
||||
src/Image.cpp
|
||||
src/display/IDisplay.hpp
|
||||
src/display/EPD_7in5_V2.hpp
|
||||
src/display/EPD_7in5_V2.cpp
|
||||
src/display/Display.hpp
|
||||
src/display/Display.cpp
|
||||
src/render/RenderTarget.hpp
|
||||
src/render/RenderTarget.cpp
|
||||
|
||||
)
|
||||
|
||||
if (BUILD_EPD)
|
||||
set(src ${src}
|
||||
src/display/EPD_7in5_V2.hpp
|
||||
src/display/EPD_7in5_V2.cpp
|
||||
)
|
||||
endif (BUILD_EPD)
|
||||
|
||||
if (BUILD_VIRTUAL_DISPLAY)
|
||||
set(src ${src}
|
||||
src/display/VirtualDisplay.hpp
|
||||
src/display/VirtualDisplay.cpp
|
||||
)
|
||||
endif (BUILD_VIRTUAL_DISPLAY)
|
||||
|
||||
add_executable(${target} ${src})
|
||||
target_link_libraries(${target} PRIVATE waveshare)
|
||||
target_link_libraries(${target} PRIVATE fmt::fmt)
|
||||
|
||||
if (BUILD_EPD)
|
||||
target_link_libraries(${target} PRIVATE waveshare)
|
||||
endif (BUILD_EPD)
|
||||
|
||||
if (BUILD_VIRTUAL_DISPLAY)
|
||||
target_link_libraries(${target} PRIVATE sfml-system sfml-window sfml-graphics)
|
||||
endif(BUILD_VIRTUAL_DISPLAY)
|
||||
Reference in New Issue
Block a user