-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hal: Expose only necessary headers in rofi::hal::esp32
- Loading branch information
Showing
2 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
file(GLOB_RECURSE SRC src/*.cpp src/*.c) | ||
|
||
add_library(rofi_hal_esp32_impl INTERFACE) | ||
target_include_directories(rofi_hal_esp32_impl INTERFACE src) | ||
target_link_libraries(rofi_hal_esp32_impl INTERFACE atoms) | ||
target_compile_options(rofi_hal_esp32_impl INTERFACE -mtext-section-literals -mlongcalls) | ||
|
||
add_library(rofi_hal_esp32 ${SRC}) | ||
target_include_directories(rofi_hal_esp32 PUBLIC src) | ||
set_property(TARGET rofi_hal_esp32 PROPERTY CXX_STANDARD 17) | ||
target_link_libraries(rofi_hal_esp32 PUBLIC idf::driver atoms rofi::hal::inc) | ||
target_link_libraries(rofi_hal_esp32 PRIVATE rofi_hal_esp32_impl idf::driver atoms) | ||
target_link_libraries(rofi_hal_esp32 PUBLIC rofi::hal::inc) | ||
target_compile_options(rofi_hal_esp32 PUBLIC -mtext-section-literals -mlongcalls) | ||
|
||
add_library(rofi::hal::esp32 ALIAS rofi_hal_esp32) |