My CLions CMakeLists.txt contains more than 1 target (libraries and depends executables). How can I configure building all targets in one click, instead of choosing target one by one and building them? For example, in Visual Studio I can configure project dependencies and build all solution. CLions "Edit configurations..."->"Before launch:Build" won't work for me.
相关问题
- Avoid cmake to add the flags -search_paths_first a
- CMakeList file to generate LLVM bitcode file from
- How to fix NDK build error for HelloCardboard samp
- Linking against GLEW with CMake
- Linking libavcodec in Cmake, find_library won'
相关文章
- Target requires the language dialect “CXX17” (with
- How do I tell cmake not to create a console window
- Defining preprocessor symbols for CLion analyzer
- Do something for all targets
- CMake: Replace compile flags of an INTERFACE targe
- Generate Web Assembly from CMake Project with a Sp
- Integrate ITK (Insight Toolkit) into own project
- Is there a way to disallow “experimental” C++17 in
You can add the command add_dependencies to your
CMakeLists.txt
, it does what you want:Then you just need to create a "BUILD_ALL" target that depends on every other target.
Clion use cmake right? you can directly edit the cmake file. Check add_subdirectory command. http://www.cmake.org/cmake/help/v3.0/command/add_subdirectory.html
Configuring target dependencies works, but it is much easier to add an "all" to CLion's build options.