Browse Source

DK-2 setup standalone project

Bence Balint 3 years ago
parent
commit
2591cd7d37

+ 1 - 1
test_app/.gitignore

@@ -1,2 +1,2 @@
 /build/
-
+/cmake-build-debug/

+ 8 - 0
test_app/.idea/.gitignore

@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Editor-based HTTP Client requests
+/httpRequests/

+ 1 - 0
test_app/.idea/.name

@@ -0,0 +1 @@
+kbf

+ 4 - 0
test_app/.idea/misc.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
+</project>

+ 8 - 0
test_app/.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/test_app.iml" filepath="$PROJECT_DIR$/.idea/test_app.iml" />
+    </modules>
+  </component>
+</project>

+ 2 - 0
test_app/.idea/test_app.iml

@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module classpath="CMake" type="CPP_MODULE" version="4" />

+ 6 - 0
test_app/.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
+  </component>
+</project>

+ 8 - 8
test_app/CMakeLists.txt

@@ -5,7 +5,7 @@ set(CMAKE_CXX_STANDARD 17)
 
 # Include the components directory of the main application:
 #
-set(EXTRA_COMPONENT_DIRS "../..")
+set(EXTRA_COMPONENT_DIRS "..")
 
 # Set the components to include the tests for.
 # This can be overridden from CMake cache:
@@ -16,11 +16,11 @@ set(TEST_COMPONENTS "kbf" CACHE STRING "List of components to test")
 
 # hax to avoid circular dependency with CLion + still build nicely with idf.py
 # set in root CMakeLists.txt: set(SKIP_IDF 1)
-if (SKIP_IDF)
-    message("skipping include esp-idf")
-else()
-    message("including esp-idf")
-    include($ENV{IDF_PATH}/tools/cmake/project.cmake)
-endif()
+#if (SKIP_IDF)
+#    message("skipping include esp-idf")
+#else()
+#    message("including esp-idf")
+#    include($ENV{IDF_PATH}/tools/cmake/project.cmake)
+#endif()
 
-project(kbf_unit_test)
+project(kbf)