Questions tagged [cmake-gui]

The “cmake-gui” executable is the CMake GUI. Project configuration settings may be specified interactively. Brief instructions are provided at the bottom of the window when the program is running.

CMake is a cross-platform build system generator. Projects specify their build process with platform-independent CMake listfiles included in each directory of a source tree with the name CMakeLists.txt. Users build a project by using CMake to generate a build system for a native tool on their platform.

from https://cmake.org/cmake/help/v3.0/manual/cmake-gui.1.html

237 questions
51
votes
2 answers

What is the difference between "option" and "set CACHE BOOL" for a CMake variable?

Is there any difference between the following two? set(FOO true CACHE BOOL "description") option(FOO "description" ON) Documentation: set - option Background: Even if I have been using CMake for a while, I only noticed the option command today and…
Antonio
  • 17,405
  • 10
  • 78
  • 178
35
votes
12 answers

CMake: failed to run MSBuild command: MSBuild.exe

I am trying to build FIAT using CMake GUI on windows 10. CMake Error at CMakeLists.txt:3 (project): Failed to run MSBuild command: MSBuild.exe to get the value of VCTargetsPath: Configuring incomplete, errors occurred! I configured CMake…
A_Matar
  • 1,720
  • 3
  • 23
  • 45
26
votes
6 answers

Where is the CMake GUI for Linux?

I have CMake installed on my Ubuntu Linux. Trying to run CMake GUI in Linux. I found it works in Windows, but where to get it and how to run in Linux?
vico
  • 13,725
  • 30
  • 108
  • 237
17
votes
1 answer

Why there are two buttons in GUI Configure and Generate when CLI does all in one command

I understand that cmake is build generator. It mean that it can generate appropriate builds (makefiles, Visual Studio project etc.) based on instructions from CMakeLists.txt. But I do not understand two things which I guess are related: Why there…
Wakan Tanka
  • 5,906
  • 11
  • 47
  • 96
11
votes
1 answer

Assimp model loading library install/linking troubles

I'm trying to install Assimp to use in my projects, but I'm having some trouble. I'm currently using win 10 pro and visual studio 15 2017. I have downloaded Assimp 4.0.1.zip, extracted it into a directory, loaded cmakeGui and ran configuration…
eternalNoob
  • 279
  • 2
  • 10
11
votes
3 answers

CMake "make install" or including a library in windows

I'm trying to create an Open Source C++ project. I want it to be as easy to build as possible, but at the same time cross platform. I don't need gui or heavy libraries like boost or Qt, so I've settled on using GitHub, CMake, and LibSourcey. My…
denisps
  • 121
  • 8
6
votes
3 answers

How to set qt5 path with cmake find_package on Windows?

I am adding QT like this: find_package(Qt5 COMPONENTS Core Quick REQUIRED) ... target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick ${OpenCV_LIBS}) but cmake finds some python artifacts instead of expected C:\QT... How can I change this?…
Stepan Yakovenko
  • 6,197
  • 19
  • 92
  • 176
6
votes
4 answers

How do I set CUDA architecture to compute_50 and sm_50 from cmake (3.10 version)?

My project uses CMake-GUI with visual studio. There is no gpu card installed on my system. The visual studio solution generated sets the nvcc flags to compute_30 and sm_30 but I need to set it to compute_50 and sm_50. I use CMake 3.10.1 and Visual…
C0D3R
  • 301
  • 2
  • 11
6
votes
2 answers

CMake, Exe cant find DLL

so im trying to setup a project, on windows, with cmake this is what my project structure looks like: GameEngine .gitbuildincludesourcetestingCMakeLists.txt the idea is that the "source" directory contain all the .cpp files for the GameEngine…
user5473227
6
votes
2 answers

CMake workflow?

I am learning CMake and I am having problems in understanding its multi-step workflow. So far, my understanding is that you: write a CMakeLists.txt run cmake from a subdirectory to generate a build file (a Makefile, in my case) run make However,…
Eleno
  • 2,534
  • 2
  • 28
  • 37
6
votes
1 answer

Cannot find python libraries for CMake in Opencv3.0.0

Trying to build Opencv3.0.0 (dev), cmake finds the binary and python 2 locations but isn't able to include python libraries. I use cmake-gui for makefile generation. While configuring cmake, it gives this piece of info along with other various…
navderm
  • 759
  • 2
  • 10
  • 31
5
votes
3 answers

How can I add dlib in cmake with findpackage?

This is my cmakelists.txt: project( WolframMachine ) cmake_minimum_required(VERSION 3.1) set (CMAKE_CXX_STANDARD 11) set(CMAKE_SUPPRESS_REGENERATION true) include(ExternalProject) set(Boost_INCLUDE_DIR…
Stepan Yakovenko
  • 6,197
  • 19
  • 92
  • 176
5
votes
1 answer

Using Cmake-gui and vcpkg

I am testing vcpkg for my project and I came across a problem with cmake-gui I have installed vcpkg, with the help of vcpkg Boost libraries were installed. When I compile via command line, everything works as it should. I use command cmake ..…
5
votes
1 answer

Ignore warnings in external modules when using CMake

I am using CMake GUI (no version) with CMake 3.6.1. I am using an external module with add_subdirectory that shows me some warnings that I do not like (because of the annoying pollution): CMake Warning (dev) at…
Liviu
  • 1,622
  • 2
  • 17
  • 42
5
votes
1 answer

CMake and VisualStudio: Group files in solution explorer

To finish a long coding session on a project, I wanted to test if my CPP project is compilable on an arrangement of OS'es. I've been working in Win10 all the time. Compiles fine. I've tried a Raspberry Pi. Compiles fine. I re-download a seperate…
MrKickkiller
  • 476
  • 9
  • 18
1
2 3
15 16