Answer the question
In order to leave comments, you need to log in
Building CMake to work with Arduino in Clion?
CMakeLists.txt
cmake_minimum_required(VERSION 2.8.4)
set(ARDUINO_SDK_PATH ${CMAKE_SOURCE_DIR}/Arduino)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/ArduinoToolchain.cmake)
set(CMAKE_CXX_STANDARD 98)
set(PROJECT_NAME nfcrfid)
project(${PROJECT_NAME})
set(${PROJECT_NAME}_BOARD uno)
# set(${<@[email protected]>}_SRCS)
# set(${<@[email protected]>}_HDRS)
# set(${<@[email protected]>}_LIBS)
# link_directories(${CMAKE_CURRENT_SOURCE_DIR}/)
# add_subdirectory()
# set(${<@[email protected]>}_SKETCH untitled.ino)
# set(${<@PROJE[email protected]>}_PROGRAMMER avrispmkii)
set(${PROJECT_NAME}_PORT COM3)
# set(${<@[email protected]>}_AFLAGS -v)
set(uno.upload.speed 9600)
generate_arduino_firmware(${PROJECT_NAME})
"C:\Program Files\JetBrains\CLion 2019.2.3\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" C:\Users\18ko\CLionProjects\untitled
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: C:/Users/18ko/CLionProjects/untitled/Arduino/hardware/tools/avr/bin/avr -gcc.exe
CMake Error at C:/Users/18ko/CLionProjects/untitled/cmake/ArduinoToolchain.cmake:85 (message):
Could not find Arduino SDK (set ARDUINO_SDK_PATH)!
Call Stack (most recent call first):
C:/Users/18ko/CLionProjects/untitled/cmake-build-debug/CMakeFiles/3.15.3/CMakeSystem.cmake:6 (include)
C:/Users/18ko/CLionProjects/untitled/cmake-build-debug/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project)
CMake Error at C:/Program Files/JetBrains/CLion 2019.2.3/bin/cmake/win /share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:44 (try_compile):
Failed to configure test project build system.
Call Stack (most recent call first):
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/18ko/CLionProjects/untitled/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/18ko/CLionProjects/untitled/cmake-build-debug/CMakeFiles/CMakeError.log".
[failed to reload]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question