### CMakeLists.txt for Yocto-IO Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-IO/CMakeLists.txt Configures the CMake build system for the Yocto-IO getting started example. It sets the minimum CMake version, defines the project, adds the YoctoLib source directory, and links the YoctoLib library to the main executable. ```CMake cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-IO) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-IO "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-IO PUBLIC YoctoLib) ``` -------------------------------- ### CMakeLists.txt for Yocto PWM Tx Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-PWM-Tx/CMakeLists.txt This CMakeLists.txt file sets up the build environment for the Yocto PWM Tx example. It specifies the minimum required CMake version, defines the project name, includes the YoctoLib library from a subdirectory, creates the main executable from main.cpp, and links the executable to the YoctoLib library. ```cmake cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-PWM-Tx) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-PWM-Tx "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-PWM-Tx PUBLIC YoctoLib) ``` -------------------------------- ### CMakeLists.txt for Yocto-RS232 Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-RS232/CMakeLists.txt This CMakeLists.txt file configures a C++ project to build an executable named 'Doc-GettingStarted-Yocto-RS232'. It includes the YoctoLib library and links it to the main executable, which uses 'main.cpp' as its source file. This setup is typical for getting started with YoctoLib in C++. ```cmake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-RS232) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-RS232 "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-RS232 PUBLIC YoctoLib) ``` -------------------------------- ### CMakeLists.txt: Yocto-RFID Project Setup Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-RFID/CMakeLists.txt This CMakeLists.txt file configures the build for the Yocto-RFID example project. It specifies the minimum CMake version, project name, includes the YoctoLib library, and links it to the main executable built from main.cpp. ```cmake #\tCMakeList.txt : CMake project for Prog-CMake, include source and define #\tproject specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-RFID) add_subdirectory(../../Sources yoctolib_bin) #\tAdd source to this project's executable. add_executable (Doc-GettingStarted-Yocto-RFID "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-RFID PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Light/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMake Project Setup for YoctoLib MaxiBuzzer Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-MaxiBuzzer/CMakeLists.txt This CMakeLists.txt file configures a C++ project to build an executable for the Yocto MaxiBuzzer example. It specifies the minimum CMake version, project name, includes the YoctoLib library, and links it to the main executable. ```CMake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-MaxiBuzzer) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-MaxiBuzzer "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-MaxiBuzzer PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Amp/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMakeLists.txt for YoctoLib C++ Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Volt/CMakeLists.txt Configures the YoctoLib C++ getting started project using CMake. It specifies the project name, includes the YoctoLib library, and defines the main executable 'main.cpp' linked against YoctoLib. ```cmake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-Volt) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-Volt "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-Volt PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-IO/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Demo/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMake Configuration for YoctoLib C++ Project Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-MiniDisplay/CMakeLists.txt This CMakeLists.txt file configures a C++ project to use the YoctoLib library. It specifies the minimum CMake version, project name, includes the YoctoLib sources, and links the executable against the YoctoLib target. It's designed for a basic getting started example with a Yocto-MiniDisplay. ```cmake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-MiniDisplay) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-MiniDisplay "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-MiniDisplay PUBLIC YoctoLib) ``` -------------------------------- ### CMakeLists.txt for Yocto-Display Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Display/CMakeLists.txt This CMakeLists.txt file configures a C++ project to build an executable that uses the YoctoLib library. It specifies the project name, includes the YoctoLib sources, defines the main executable, and links against the YoctoLib library. ```CMake cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-Display) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-Display "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-Display PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-0-10V-Tx/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMakeLists.txt for Yocto-SPI Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-SPI/CMakeLists.txt This CMakeLists.txt file configures a C++ project to build an example demonstrating Yocto-SPI functionality. It requires CMake version 3.8 or higher, adds the YoctoLib library as a dependency, and specifies the main C++ source file. ```cmake cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-SPI) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-SPI "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-SPI PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Maxi-IO/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Servo/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMakeLists.txt Configuration for YoctoLib Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-0-10V-Tx/CMakeLists.txt This snippet details the CMake configuration for a C++ project that uses the YoctoLib library. It specifies the minimum CMake version, project name, includes the YoctoLib sources, defines the main executable, and links against the YoctoLib library. ```CMake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-0-10V-Tx) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-0-10V-Tx "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-0-10V-Tx PUBLIC YoctoLib) ``` -------------------------------- ### CMakeLists.txt for YoctoLib C++ Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-4-20mA-Rx/CMakeLists.txt This CMakeLists.txt file configures a C++ project to build an executable that links against the YoctoLib library. It specifies the minimum CMake version, project name, includes the YoctoLib sources, defines the main executable, and links the necessary library. ```CMake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-4-20mA-Rx) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-4-20mA-Rx "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-4-20mA-Rx PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Serial/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMakeLists.txt for Yocto Temperature Example Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Temperature/CMakeLists.txt This CMakeLists.txt file defines the build process for a C++ executable. It specifies the minimum required CMake version, sets the project name, includes the YoctoLib library from a relative path, defines the main executable target with its source file ('main.cpp'), and links the executable against the YoctoLib library. ```cmake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-Temperature) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-Temperature "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-Temperature PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-0-10V-Rx/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMakeLists.txt Configuration for YoctoLib Project Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-PowerColor/CMakeLists.txt This snippet shows the CMake configuration file for a C++ project that links against the YoctoLib library. It defines the project name, includes the YoctoLib sources, and specifies the main executable and its dependencies. ```CMake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-PowerColor) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-PowerColor "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-PowerColor PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-PWM-Rx/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMake Configuration for YoctoLib C++ Project Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-LatchedRelay/CMakeLists.txt This CMakeLists.txt file configures a C++ project to use the YoctoLib library. It specifies the minimum CMake version, project name, links against the YoctoLib library, and defines the main source file. ```cmake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-LatchedRelay) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-LatchedRelay "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-LatchedRelay PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-PWM-Tx/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ``` -------------------------------- ### CMakeLists.txt for Yocto-Buzzer Project Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-Buzzer/CMakeLists.txt This CMakeLists.txt file configures a C++ project named 'Doc-Getting Started-Yocto-Buzzer'. It specifies the minimum CMake version, adds the YoctoLib library as a subdirectory, defines the main executable source file ('main.cpp'), and links the executable against the YoctoLib library. ```cmake # CMakeList.txt : CMake project for Prog-CMake, include source and define # project specific logic here. # cmake_minimum_required (VERSION 3.8) project(Doc-GettingStarted-Yocto-Buzzer) add_subdirectory(../../Sources yoctolib_bin) # Add source to this project's executable. add_executable (Doc-GettingStarted-Yocto-Buzzer "main.cpp") target_link_libraries(Doc-GettingStarted-Yocto-Buzzer PUBLIC YoctoLib) ``` -------------------------------- ### Yoctopuce C++ Library Project Files Source: https://github.com/yoctopuce/yoctolib_cpp.git/blob/master/Examples/Doc-GettingStarted-Yocto-milliVolt-Rx/README.txt This section lists the project files provided for integrating the Yoctopuce C++ library with different development environments and platforms. These files facilitate compilation and project management. ```text main.cpp GNUmakefile make.bat CodeBlocks/CodeBlocks_linux.cbp CodeBlocks/CodeBlocks_win.cbp Xcode/ VisualStudio/ ```