On the other hand, the Unix/Linux/GNU Make system does not support build configurations. Therefore, we need to configure our build process to cater for these different output requirements.īoth Visual Studio and Xcode support multiple build configurations, and CMake can generate appropriate build configuration files for these systems. For example, a developer’s build typically includes metadata used by a debugger which is not required for a released version of the project. Outputs from each type of build configuration are usually different. We usually do this using build configurations. To support the different phases and objectives of a Software Development Lifecycle a project will need to differentiate between developing code, testing (in its various forms) and releasing a version for end-use. In the real world, projects are never as simple as this minimal example, and we try to reflect this in our training. B build -DCMAKE_TOOLCHAIN_FILE=toolchain-STM32F407.cmake The CMake commands used to generate and build the project are: cmake -S. We looked at the minimum requirements to configure the CMake build generator for a cross-compilation project using a project definition file ( CMakeLists.txt), a toolchain definition file ( toolchain-STM32F407.cmake). In my previous blog post CMake Part – The Dark Arts I discussed how to configure CMake to cross-compile to target hardware such as our STM32F407 Discovery board.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |