diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-11-28 05:45:20 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-12-18 00:00:27 +0300 |
commit | 7bb6daa4bf09947142e38ff468b7f62baae110fd (patch) | |
tree | c120e9ec800525116ad922e6c4cff21064a40538 /platformio/relayctl/CMakeLists.txt | |
parent | 16d47968b4938f3b60b97f374d45ad39bb0071b1 (diff) |
esp8266 relay controller wip
Diffstat (limited to 'platformio/relayctl/CMakeLists.txt')
-rw-r--r-- | platformio/relayctl/CMakeLists.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/platformio/relayctl/CMakeLists.txt b/platformio/relayctl/CMakeLists.txt new file mode 100644 index 0000000..cbc0a64 --- /dev/null +++ b/platformio/relayctl/CMakeLists.txt @@ -0,0 +1,33 @@ +# !!! WARNING !!! AUTO-GENERATED FILE, PLEASE DO NOT MODIFY IT AND USE
+# https://docs.platformio.org/page/projectconf/section_env_build.html#build-flags
+#
+# If you need to override existing CMake configuration or add extra,
+# please create `CMakeListsUser.txt` in the root of project.
+# The `CMakeListsUser.txt` will not be overwritten by PlatformIO.
+
+cmake_minimum_required(VERSION 3.13)
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_C_COMPILER_WORKS 1)
+set(CMAKE_CXX_COMPILER_WORKS 1)
+
+project("relayctl" C CXX)
+
+include(CMakeListsPrivate.txt)
+
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeListsUser.txt)
+include(CMakeListsUser.txt)
+endif()
+
+add_custom_target(
+ Production ALL
+ COMMAND platformio -c clion run "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+add_custom_target(
+ Debug ALL
+ COMMAND platformio -c clion debug "$<$<NOT:$<CONFIG:All>>:-e${CMAKE_BUILD_TYPE}>"
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+add_executable(Z_DUMMY_TARGET ${SRC_LIST})
|