Skip to content

CMake support required #15

@Sterpa

Description

@Sterpa

Could you please add CMakeLists.txt to the library to create compatibility with СMake projects?
And also for compatibility with (ESP-IDF4.0 + arduino-esp32-4.0 as a component) enviroment combination.

I tried the following CMakeLists.txt code and it performed very well:

idf_component_register(SRCS "src/ICM_20948.cpp" 
                            "src/util/ICM_20948_C.c"
                       INCLUDE_DIRS "src" 
                                    "src/util"
                       REQUIRES "arduino")

component_compile_options(-std=c++17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions