mirror of
https://github.com/usatiuk/cardboy.git
synced 2025-10-28 23:27:49 +01:00
32 lines
825 B
CMake
32 lines
825 B
CMake
idf_component_register(
|
|
INCLUDE_DIRS ""
|
|
REQUIRES backend-esp
|
|
)
|
|
|
|
set(CARDBOY_BUILD_SFML OFF CACHE BOOL "Disable desktop backend build" FORCE)
|
|
set(CARDBOY_SDK_BACKEND_LIBRARY cardboy_backend_esp CACHE STRING "Cardboy backend implementation" FORCE)
|
|
|
|
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/../../sdk/core" cb-sdk-build-core)
|
|
add_subdirectory("${CMAKE_CURRENT_LIST_DIR}/../../sdk/apps" cb-sdk-build-apps)
|
|
|
|
target_compile_options(cardboy_backend_esp
|
|
INTERFACE
|
|
-fjump-tables
|
|
-ftree-switch-conversion
|
|
)
|
|
|
|
target_link_libraries(cardboy_backend_esp
|
|
INTERFACE
|
|
idf::driver
|
|
idf::esp_timer
|
|
idf::esp_driver_spi
|
|
idf::freertos
|
|
)
|
|
|
|
target_link_libraries(${COMPONENT_LIB}
|
|
INTERFACE
|
|
cardboy_backend_esp
|
|
cardboy_sdk
|
|
cardboy_apps
|
|
)
|