Top "Cmake" questions

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

How to find the Qt5 CMake module on Windows

I'm trying to make a very basic Qt5 application using CMake on Windows. I used the documentation of Qt5 to …

c++ windows visual-c++ cmake qt5
In CMake, how can I test if the compiler is Clang?

We have a set of cross-platform CMake build scripts, and we support building with Visual C++ and GCC. We're trying …

c++ c cmake clang
CMake is not finding Boost

I am trying to install CGAL. They describe their installation process as ever-so-simple here, section 6.1. When I run cmake-gui and …

c++ boost cmake cgal
The proper way of forcing a 32-bit compile using CMake

Sorry that there are many similar questions, but I do find that Googling for CMake queries always yields similar-but-not-the-same scenarios, …

c++ gcc cmake 32bit-64bit ld
How do I instruct CMake to look for libraries installed by MacPorts?

I'm trying to build some of our software, which was designed to run solely on Linux, on MacOS X. We …

macos cmake macports
How to copy contents of a directory into build directory after make with CMake?

I've got some config files (xml, ini, ...) in the config directory next to the source files. How can I copy …

c++ cmake
CMake check that a local file exists

In my CMake script I want to see if I have a file on my system, and if it is …

file cmake file-exists
Building error using cmake: cannot find -lpthreads

I have c++ project that was smoothly running on a given machine, and now I am trying to compile it …

c++ linux cmake pthreads
Using pre-compiled headers with CMake

I have seen a few (old) posts on the 'net about hacking together some support for pre-compiled headers in CMake. …

c++ visual-studio gcc cmake precompiled-headers
Python.h: No such file or directory

I recently installed KDevelop 4 for C++ development on my Macbook Pro running Ubuntu 12.04 LTS. I want to embed Python application …

c++ python include cmake kdevelop