57 lines
1.1 KiB
CMake
57 lines
1.1 KiB
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
|
|
src/font/Font.hpp
|
|
src/font/Font.cpp
|
|
src/font/Glyph.hpp
|
|
src/font/Glyph.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
|
|
fmt::fmt
|
|
nlohmann_json::nlohmann_json
|
|
)
|
|
endif(BUILD_VIRTUAL_DISPLAY) |