Category "cmake"

How to set cmake, in order to add txt files into working directory as resource?

CMakeLists.txt cmake_minimum_required(VERSION 3.8) project(untitled) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES main.cpp) add_executable(untitled ${SOURCE_F

Latest VSCode 1.66.2 does not stop on failed assertion in C++ CMake debugging session

My VSCode: Version: 1.66.2 Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977 Date: 2022-04-11T07:49:24.808Z Electron: 17.2.0 Chromium: 98.0.4758.109 Node.js: 16.

QtCreator Getting Undefined Reference to Qt's own "QNearFieldTarget" Class while using CMake Build System

I'm trying to build an Android App to Debug the NFC communication. However, CMake doesn't seem to neither find nor link the required headers for NFC. QObject et

Why does CMAKE need two build runs to compile open625251 encryption correctly?

I am somewhat new to CMAKE and need your help. I am building a project that uses the OPCUA library open62541 and after including encryption, the build process i

Build OpenCV for Android with CMake's ExternalProject_Add

I am creating an Android library that uses OpenCV via NDK. It doesn't require any Java parts of OpenCV, native parts only, so I decided not to use OpenCV for An

Gradle : How to automatically install CMake

I am working on an Android native project which builds using CMake. In my build.gradle I specify : if(project.hasProperty("native")) { externalNativeBui

How can I add compiler warnings in CMake that exclude Protobuf files?

I'm adding warnings (and treating them as errors) to my C++ project which uses CMake for builds. Initially I used target_compile_options. But as I've added more

Creating installer using cpack and windeployqt, To contain qt and VTK libraries

Trying to package an application with Microsoft Visual Studio 2022 and qt6 libraries I do not no were to start from. I've done a bit of research most people use

How to create custom ConfigVersion.cmake

I am creating a c++ header only library and using CMake as my build system. I am pretty new with CMake, but after I read some blog posts, documentation and look

conan + cmake generators : include directories not found during compilation

I am new to Conan, and I'm struggling to use specific conan packages in CMake. I started with including boost to my project using conan, and that worked out gre

Cmake : Building .dylib to test Android JUnit tests

I am working on Android native project using C++ code built using CMake. Currently my app is running fine and native lib(.so) is successfully loaded using Syste

how can I use vcpkg to install sqlite3 and use in cmakelist.txt?

I use vcpkg to load sqlite3 for my C++ project. for vcpkg, I think I integrate it correctly: PS D:\tool\vcpkg\vcpkg> .\vcpkg.exe integrate install Applied us

Flutter: CMake Error at flutter/CMakeLists.txt:75 (add_custom_command): This character is not allowed

I created a flutter project recently but when I try to run it shows me the error below, how to solve it? Thanks in advance! **CMake Error at flutter/CMakeLists.

Ignoring CMake cached variable

How can I force CMake to ignore cached value? I want to require the caller to pass variable each time, for example cmake .. -DSOME_VAR=value and if I call CMak

Cmake 3.10.2 not found in SDK, PATH or by cmake.dir prop

Getting the following error when building my project in Android Studio: [CXX1300] CMake '3.10.2' was not found in SDK, PATH, or by cmake.dir property. My Gradl

How to manually postprocess CMake target during installation?

I am working on a library that provides gdb pretty-printers. They could be automatically located by including the .debug_gdb_scripts section in the generated bi

How to turn on optimizations ( O3 ) when invoking cmake?

I am trying to build mlpack from source, So far I have compiled the library with the below command, cmake -G "MinGW Makefiles" -DBoost_INCLUDE_DIR="C:\msys64\mi

Install IPOPT locally into C++ codebase with CMake ExternalProject

I would like to use Ipopt in a CMake-based project using ExternalProject. The library should be installed locally and automatically in the build folder so that

Boost not found when installing dlib, but its actually installed

Im trying to install dlib for few cv2 projects, but I have problems installing it.I made everything without problem but when I wanted to finally do the python s

Executing a script before CMake configuration in CLion

I'm setting up a cross-compiling environment with CLion and need to execute a specific configuration script before configuring CMake. I can do it in the command