Questions tagged [cmake]
Questions about CMake, an open-source cross-platform "meta-make" where you can describe your software project's build, test and deployment process in an abstract way using configuration files. From those configurations it can generate build environments for all sorts of compilers and IDEs on all major operating systems.
35 questions
2 votes
3 answers
270 views
How to decouple spagheti code for unit tests [duplicate]
A little background on the project: we as a company receive a spaghetti source code, and into that we add even more spaghetti code. So with that I want to say that complete restructuring and ...
1 vote
1 answer
178 views
App that can be deployed both as monolith and microservices?
We have a monolith C++ application and I consider doing some major refactorings. Since we're not completely ready to go full "microservices only" (maybe in about two years time), I want to ...
1 vote
0 answers
264 views
Are absolute paths in C++ libraries okay to have if they are *generated* at configuration time from non absolute paths?
I've recently created a library that needs a non-text (but platform agnostic) resource to be used. I basically tell CMake, if this is an install interface, it's in the "${...
0 votes
1 answer
683 views
Global vs local CMake functions for compiler flags
In the online book "Introduction to Modern CMake", I found the following recommendation: Do not use global functions: This includes link_directories, include_libraries, and similar. Yet the ...
2 votes
0 answers
293 views
How to "orchestrate" a multi-repository installation
Suppose I'm working on software to be installed on a Linux machine (not mine). Say the software consists of applications the user might start independently; an application which will likely be started ...
3 votes
0 answers
292 views
C++ dependency management across projects
We are developing a benchmarking framework in C++, with Make and CMake as build tools. The aim of the framework is to allow others who build algorithms to perform head-to-head comparison against prior ...
1 vote
1 answer
98 views
code for a try_run() invocation - where do I place it?
I'm working on a CMake module which, at some point, invokes try_run(). The file I'm compiling is not really part of the project's sources - it's not used anywhere. It's only ever useful for CMake, to ...
1 vote
1 answer
993 views
Managing a third party library that is used by multiple independent libraries
I am working on configuring the build environment for a C++ project that uses multiple libraries. These libraries are independent of each other, but they all depend on the same 3rd party library (...