pico-sdk/src/host/pico_divider/CMakeLists.txt
Graham Sanderson 0e4e25a343
Rework build targets such that: (#1211)
1. Make sure Pico SDK libraries have the correct dependencies on other SDK libraries
2. Pico SDK libraries all have _headers variants to include the headers. This may facilitate building user STATIC libraries without
   pulling in SDK code, though care will still need to be taken w.r.t. values of #defines
3. Make sure the _headers versions also have the correct dependencies

Note: There are a few exceptions to 1. for some non code libraries like pico_standard_link and pico_cxx_options
2023-01-30 10:56:03 -06:00

9 lines
260 B
CMake

pico_add_impl_library(pico_divider)
target_sources(pico_divider INTERFACE
${CMAKE_CURRENT_LIST_DIR}/divider.c)
pico_mirrored_target_link_libraries(pico_divider INTERFACE hardware_divider)
macro(pico_set_divider_implementation TARGET IMPL)
endmacro()