]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - esp32/esp_project/components/matrix/CMakeLists.txt
working examples for esp
[matrix_esp_thesis] / esp32 / esp_project / components / matrix / CMakeLists.txt
diff --git a/esp32/esp_project/components/matrix/CMakeLists.txt b/esp32/esp_project/components/matrix/CMakeLists.txt
new file mode 100644 (file)
index 0000000..485b3c6
--- /dev/null
@@ -0,0 +1,17 @@
+idf_component_register(SRCS
+                            "../../../../src/matrix.c"
+                            "../../../../src/matrix_http_esp32.c"
+                            "../../../../ext/mjson/src/mjson.c"
+                       INCLUDE_DIRS
+                            "../../../../ext/olm/include"
+                            "../../../../ext/olm/lib"
+                            "../../../../ext/mjson/src"
+                            "../../../../src"
+                       REQUIRES
+                            esp-tls
+                            esp_http_client
+                            esp_netif
+                            nvs_flash)
+
+SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -fpermissive")
+SET(CMAKE_CXX_COMPILER  "C:/Espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe")