cmvr-es/cmvr-es/devices/biohead/biohead_esp32/CMakeLists.txt

13 lines
337 B
CMake
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 定义库目标(名称统一为 head_esp32
add_library(head_esp32 SHARED src/biohead_esp32.cpp)
# 设置头文件包含路径
target_include_directories(head_esp32 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
# 创建命名空间化的 ALIAS建议使用项目命名空间
add_library(cmvr::device::head_esp32 ALIAS head_esp32)