44 lines
955 B
CMake
44 lines
955 B
CMake
|
|
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/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 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) |