Top "Cmake" questions

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

Adding command line options to CMake

I'm building a large library using CMake, and I would like users to be able to selectively enable/disable certain …

command-line cmake
How to build x86 and/or x64 on Windows from command line with CMAKE?

One way to get cmake to build x86 on Windows with Visual Studio is like so: Start Visual Studio Command …

c visual-studio cmake cross-compiling x86-64
Passing the argument to CMAKE via command prompt

I have a makefile for my project and also I am passing some argument and based on that argument i …

makefile cmake
CMake: Project structure with unit tests

I am trying to structure my project to include the production sources (in src subfolder) and tests (in test subfolder). …

c++ unit-testing boost cmake boost-test
Most simple but complete CMake example

Somehow I am totally confused by how CMake works. Every time I think that I am getting closer to understand …

c++ cmake project-setup
CMake and Static Linking

I'm using CMake in a project, and I'm trying to statically link some libraries. I've set: set(BUILD_SHARED_LIBS …

gcc linker cmake static-libraries static-linking
CMake: failed to run MSBuild command: MSBuild.exe

I am trying to build FIAT using CMake GUI on windows 10. CMake Error at CMakeLists.txt:3 (project): Failed to run …

c++ msbuild cmake cmake-gui
How to properly link libraries with cmake?

I can't get the additional libraries I am working with to link into my project properly. I am using CLion, …

c++ opengl cmake undefined-reference
How to set warning level in CMake?

How to set the warning level for a project (not the whole solution) using CMake? Should work on Visual Studio …

cmake warning-level