Linked Questions
14 questions linked to/from CMake - linking to library downloaded from ExternalProject_add()
1 vote
0 answers
112 views
Building a bazel 3rd party from a cmake project [duplicate]
I need to integrate a bazel C++ project as part of a cmake project. I have no experience with cmake and haven't found how I could do so. The bazel output is a shared library that will get linked to ...
0 votes
0 answers
59 views
cmake: How to conditionally add an external project? [duplicate]
Please consider below CMakeLists.txt. I am adding an external project if I am unable to find FOO; mylib1 and mylib2 depends on FOO. This works if I am doing make, it sets up FOO if not found and ...
1 vote
0 answers
48 views
How to Superbuild mysql-connector-cpp, in a project using CMake? [duplicate]
I trying to superbuild mysql-connector-cpp in my project. Here is my file tree: src/ ├─ app/ ├─ common/ ├─ core/ ├─ CMakeLists.txt ThirdParty/ ├─ mysql-connector-cpp/ ├─ CMakeLists.txt CMakeLists.txt ...
10 votes
1 answer
6k views
How to build cmake ExternalProject while configurating main one?
It can be a pain to refrence ExternalProjects when their install targets are messed up. So one may want to build and install ExternalProjects once before generating main project files for given ...
3 votes
1 answer
8k views
How to add libraries installed with ExternalProject_Add to target includes
I'm trying to include external libraries to a cmake project through ExternalProject_Add. To try out this feature I've created a minimal working example that involves adding pugixml to the project ...
6 votes
3 answers
4k views
CMake ExternalProject_Add and parallel builds
With the following CMakeLists.txt build script: include( ExternalProject ) ExternalProject_Add( framework SOURCE_DIR ${framework_SOURCE} PREFIX framework_build ...
0 votes
3 answers
4k views
Installing and Linking to Apache Arrow inside Cmake
I'm trying to build and link-to apache-arrow v9.0.0 inside my cmake project using the following section in my CMakeLists.txt file. ExternalProject_Add(arrow URL "https://www.apache.org/...
0 votes
2 answers
2k views
How to add ImageMagick/Magick++ to my c++ project with CMake?
I am new to CMake. I was trying to use ImageMagick's c++ api Magick++ in my code. This is my whole directory structure: external/image_magick just contains the result of cloning the image magick ...
1 vote
1 answer
2k views
How to add_subdirectory after a externalproject_add()?
I have to download zlib to use in my project. I use externlproject_add() to downaload all zlib repository, build and install it. After it, I want do install a lib that is part of zlib repository: ...
0 votes
0 answers
904 views
How to add include directories from ExternalProject_Add into project?
I have tried following this solution this individual has from this question. I am trying to do this with boost with the following cmake file in a separate directory from my Source: #------------------...
2 votes
1 answer
668 views
CMake run custom command with externalproject's target
I have a subproject in my project for generating code used in the project, however i want to include it using ExternalProject so it can be built and ran regardless of the toolchain i use for the main ...
0 votes
1 answer
442 views
How to set include order for cmake
I'm using cmake to generate Makefile for a project. In the top CMakeLists.txt, I need to include some sub modules. So it is like: include(cmake/Modules/pcre-8.40.cmake) include(cmake/Modules/curl-7....
1 vote
0 answers
316 views
CMake uses external project library before building it
I'm building an Audio Player, and I need FMOD to be built/extracted before the audio target gets built. Here's the CMakeLists.txt cmake_minimum_required(VERSION 3.4.1) # Setup GNU/Unix make set(...
1 vote
1 answer
243 views
Using ExternalProject_Add with ITK
I am trying a very simple ExternalProject usage against ITK. This will allow my automated jenkins slave to retrieve ITK directly instead of using a system installed library (thus I leave it as an ...