CMake is a cross-platform, open-source build system. It generates native makefiles and project files that can be used from the command line or integrated development environment of your choice.

learn more… | top users | synonyms

1
vote
1answer
60 views

Makefile and translating it to Cmake

My makefile looks like this and I translated it to cmake. ...
2
votes
1answer
33 views

CMakeList to compile and link an executable using Boost

I'm beginner with CMake and C++ compilation but it's seems that unlike Java I need to be very explicit with my CMakeList.txt in order to link src with correct header and libraries in my project. Here ...
16
votes
1answer
142 views

From new Q to compiler in 30 seconds

Reviewing code doesn't necessarily require actually building it, but it's often helpful to do so in order to evaluate fully. I usually create a CMake project and ...
5
votes
1answer
35 views

Initializing static, machine-specific data in C using a compile-time generated header

I'm using some rather old C code (circa 1996, written in K&R style) to do robust geometric computations, available here, for a library I'm trying to write. In order to work properly, this code has ...
3
votes
1answer
54 views

Cmake module that improves upon CheckLibrariesExists

The following module AssertLibraryFunction improves upon CheckLibrariesExists in two respects: It honors the optional argument ...
14
votes
1answer
139 views

Khronos: Primary CMake file

So recently I made a large project of mine open source: Khronos. I will be dissecting parts of it so that I can have it reviewed more easily here and so that the project as a whole will be improved. ...
3
votes
1answer
201 views

CMake module to make executable as small as possible

I wrote this .cmake script when I needed to make smallest possible executables. It makes CMake prefer static libraries, and adds custom command to strip and UPX the end result. I used it only with ...
6
votes
1answer
210 views

CMake build system

I wasn't quite sure where to go with this, and this seemed to be the best place I could think of so I thought why not. I threw together a build system for C++ projects today using CMake and I wanted ...
10
votes
4answers
853 views

Knowledge is power

Resurrecting my C++ saga, I was given this project for my CS2 class: This problem considers several ways to compute \$ x^n \$ for some \$ n \ge 0 \$. Write an iterative function ...