Category "cmake"

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

Converting Makefile to CMake cannot find linked shared object

I am attempting to convert a working Makefile into a CMake and need a little assistance. I am trying to cross compile a small program for a yocto device from a

How to know the name of a library installed with vcpkg?

In my simple app which I build with cmake I use opencv, which is installed with vcpkg. On CMakeLists.txt I have to find_package(OpenCV REQUIRED), replacing Open

CMake Error at CMakeLists.txt:7: Parse error. Function missing ending ")". End of file reached

cmake_minimum_required(VERSION 3.0.0) project(opencvtest VERSION 0.1.0) include(CTest) enable_testing() set(OpenCV_DIR C:\Users\Sayar\opencv\build\) find_pac

Clarification about modern CMake structure

I am not an expert C or C++ programmer, but I have to write a C and a C++ application for two course projects. To start off on the right foot, I was reading a g

How do you set compile flags in CMake?

I'm writing a project using the Slate linear algebra library in C++, with MKL, MPI and OpenMP as dependencies. Usually, I run my program on a Linux based system

Why does CMake default to Program Files x86 when compiling 64 bit program?

I am trying to build and install a basic program with CMake 3.17.2 for 64 bit windows with Visual Studio 16 2019. CMakeLists.txt: cmake_minimum_required(VERSION

create shared library with main to call undefined function and provide function body in other project

I need to create a shared library using cmake, and I must call function run() in a library function. But the project which uses this library should provide the

Integrating Protobuf into Unreal Engine 4 (Linux)

I'm having trouble integrating protobuf (3.20.4) into UE4 as a static library and packaging for linux. The packaging fails with these errors : undefined symbol:

visual studio error e1696 -"cannot open source file iostream"

When I build a cmake project in visual studio and this error occurs, I tried to uninstall and reinstall visual studio but it did not work. the Build succeeded a

how to properly link mingw libraries using cmake and vcpkg?

I've getting used to simple cmake codes like this cmake_minimum_required(VERSION 3.20) project(trial VERSION 0.1.0) set(CMAKE_CXX_STANDARD 20) find_package(fm

mingw32-make fails in cmd due to temporary errors of non-literal type and non-trivial destructor in open CV sources

I need to inject Open CV to Qt according to this tutorial, but at the stage mingw32-make on cmd I got en error. C:/opencv/sources/3rdparty/protobuf/src/goog

how to properly link mingw libraries using cmake and vcpkg?

I've getting used to simple cmake codes like this cmake_minimum_required(VERSION 3.20) project(trial VERSION 0.1.0) set(CMAKE_CXX_STANDARD 20) find_package(fm

find_package() ignores <PackageName>_ROOT

In my CMake script I append the path to a folder containing <PackageName>Config.cmake to <PackageName>_ROOT and then call find_package(<PackageNa

cmake : shared library or sub-prjoect

I am builfing a new c++ project and i want to integrate cmake and i dont know what is the best approach i have to follow my project tree looks like this : .

How to specify dependencies in qt_add_qml_module (CMake for Qt 6.2)

When using qt_add_qml_module to specify a QML module, how do you handle Qt modules that it depends on (e.g. QtMultimedia)? If I have class Synthesizer that exte

'base/debug/debugging_buildflags.h' file not found when building project with webrtc

I am building a project that includes webrtc with CMake, Visual Studio 2019 and ClangCl. This is the command I run to configure : cmake -G "Visual Studio 16 20

CMake - How to handle dependencies of imported library targets with TARGET_RUNTIME_DLLS

In my project I rely on some third party shared library named foo. foo itself is relying on some other third party dll (let's call it bar.dll), which is however