Skip to content

Commit

Permalink
Update esp32
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 authored and Your Name committed Sep 17, 2020
1 parent 608c153 commit 70feaee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions microros_esp32_extensions/components/libatomic/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
file(GLOB SRCS ${CMAKE_CURRENT_LIST_DIR}/*.c*)
idf_component_register(SRCS ${SRCS}
INCLUDE_DIRS ".")
Empty file.
3 changes: 2 additions & 1 deletion microros_esp32_extensions/main/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ externalproject_add(libmicroros
file(MAKE_DIRECTORY ${MICROROS_INCLUDE_DIR})

add_library(microros STATIC IMPORTED GLOBAL)
add_dependencies(microros libmicroros)
add_dependencies(microros libmicroros idf::libatomic)
target_link_libraries(microros INTERFACE idf::libatomic)

set_target_properties(microros PROPERTIES IMPORTED_LOCATION ${CMAKE_BINARY_DIR}/libmicroros.a)
set_target_properties(microros PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${MICROROS_INCLUDE_DIR})
Expand Down

0 comments on commit 70feaee

Please sign in to comment.