Top "Cmake" questions

CMake is a cross-platform, open-source build system generator.

How to detect target architecture using CMake?

I've done a lot of research and been unable to find an answer to this... how can I reliably find …

architecture cmake build-process qmake
cmake : Set environment variables from a script

I have a script that sets all variables needed for the cross-compilation. Here is just part of it : export CONFIG_…

linux cmake environment-variables cross-compiling build-system
How to use all *.c files in a directory with the Cmake build system?

I want to find all .c files under a directory and add them all to SRC files to compile in …

makefile cmake
Cause CMAKE to generate an error

How can I get CMAKE to generate an error on a particular condition. That is, I want something like this: …

cmake
How to enable C++17 in CMake

I'm using VS 15.3, which supports integrated CMake 3.8. How can I target C++17 without writing flags for each specific compilers? My …

c++ visual-studio cmake c++17
Is it possible to get CMake to build both a static and shared version of the same library?

Same source, all that, just want a static and shared version both. Easy to do?

static cmake shared
Override compile flags for single files

I would like to use a global set of flags for compiling a project, meaning that at my top-level CMakeLists.…

c++ cmake compiler-warnings
How to include external library (boost) into CLion C++ project with CMake?

I have the following setup for C++ development: OS X Yosemite CLion 140.2310.6 (a cross-plattform C/C++-IDE by JetBrains using …

c++ boost cmake clion
Where is the CMake GUI for Linux?

I have CMake installed on my Ubuntu Linux. Trying to run CMake GUI in Linux. I found it works in …

ubuntu cmake cmake-gui
How to install your custom CMake-Find module

I configure and package my library using CMake and CPack. I have written my own find-module: FindMyLib.cmake. How do …

cmake cpack