Category "cmake"

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

Linking python and c++ on windows

I'm trying to create a python library, written in c++, using boost-python, and mingw to compile. c++ Code: char const* greet() { return "hello, world"; } #i

Compile with CMAKE and invalid sh_info in symbol table

sorry bad english cloned and compiled this project in Android Studio: https://github.com/Pangu-Immortal/KeepAlivePerfect/ During compile, got the following erro

GMP works when compiling with makefile but not with cmake

I am trying to include <gmp.h> in my project. A very simple Makefile compiles it successfully: CC=gcc -std=c11 -w LIBR=-lm -lgmp FLAGS=-O0 all: test tes

Installing / Building the newest version of Inkscape (v 1.2) on Linux Ubuntu 20.04

I am trying to install Inkscape 1.2beta on Linux Ubuntu 20.04. The website currently only offers an AppImage and a source tarball. Since I would like to access

Installation error OpenCV 4.5.5 from source code in Windows

I was trying to install OpenCV-4.5.5 from source on my windows machine. This machine has the latest Nvidia drivers as well as CUDA 11.6, I did not run into any