Category "cmake"

Cmake link libmapnik c++

I am unable to connect Mapnik via cmake to my application. I tried to do like this: cmake_minimum_required(VERSION 3.1) project(MapnikTest) set(MAPNIK_LIB "/u

Configuring protobuf C++ to dynamically link against MSVC runtime library

I would like to configure protobuf to link MSVC runtime library dynamically. While this is supported by protobuf and seems trivial to do, I have not been able t

how to compile and then create lib file QtpropertBrowser

how to compile and then create lib file QtpropertBrowser. I want to add this library on my project. this library https://github.com/airpaio/QtPropertyBrowser .

How can I set “Other Linker Flags” to include -ObjC with CMake?

I am trying to generate an XCode project with CMake, but I can't define "Other linker flags" in project settings. I have tried using the following: set(CMAKE_SH

generating debug info with emscripten / ninja / cmake on complex project

I am trying to debug a port of some c and c++ code to WASM. I worked out how to source level debug in the browser with a simple 10 line .c program but now I wan

cmake: statically link against opencv libs

On Ubuntu 20.04: sudo apt install libopencv-dev Result: kwu@Dev-KWu:/usr$ find . -name "*opencv_imgproc*" -o -name "*opencv_core*" ./lib/x86_64-linux-gnu/libope

CMake - Install Find script for depencency together with script

I am making a CMake library around some installable SDK. So the dependency tree looks like: Application --> MyLibrary --> OfficialSDK This SDK is

What's the effect of export CMAKE_PREFIX_PATH=...?

When google-ing export CMAKE_PREFIX_PATH, you will often find the suggestion to cure the problem that CMake doesn't find this or that package by setting an envi

What's the effect of export CMAKE_PREFIX_PATH=...?

When google-ing export CMAKE_PREFIX_PATH, you will often find the suggestion to cure the problem that CMake doesn't find this or that package by setting an envi

OpenVAS libgvm_util.so: undefined reference to `MQTTClient_`

Have some troubles in compiling from source https://github.com/greenbone/openvas.git cmake was done successfully, but make failed with: /usr/bin/ld: /opt/gvm/li

getting error in running cmake std Tutorial step 2 example

I am totally new to cmake and its syntax .But fortunately I am able to run the cmake tutorial step 1 as per the introductions mention on below links : https:/

Downloading only specific AWS C++ SDKs using CMake's FetchContent

I'm trying to link-in the AWS C++ SDK for my CMake C++ Project. However, I'm only going to be using a subset of the SDK modules (lambda) and I don't want FetchC

How to set xcode debugger working directory with CMake

I searched for an equivalent of VS_DEBUGGER_WORKING_DIRECTORY for xcode in cmake documentation, but I couldn't find one. If it indeed doesn't exist, how I can u

Clion / Cmake can't find boost on linux

I recently changed to Linux Mint Debian Edition and cannot include boost to Clion using cmake. Yesterday I tried every option I could find, including on stackov

vscode cmake build terminal output color

Is it possible to influence the colors of certain output lines? I would like to see the line 100% Built target of my project in green too.

Error with Dlib installation for python on windows 10

I'm trying to install dlib. I followed every single tip on the internet but its just not working. I'm using/tried windows 10 cmake 3.21.4 (it's on path) python

pip install dlib, Cmake error compiler is not found

when i want to install pip install dlib it gives me this error i have both installed MSVC v142-vs 2019 c++ x64 build tools and c++ Cmake tools for windows and y

Run each test in a new container

I have google test based test suite. Since the tests manipulate the filesystem and do other things that I don't want to be left behind in case of a test crash,

How to use c++20 modules with CMake?

Clang and MSVC already supports Modules TS from unfinished C++20 standard. Can I build my modules based project with CMake or other build system and how? I tri

CMAKE Esp32 using azure iot samples - what to check in into my repository

I am really new to iot/embedded world (I come from the b2b java world). Currently I am starting setting up an ESP32 based project. So far I tried esp-idf Hello