Questions tagged [cmake-gui]

cmake-gui is CMake's bundled GUI wrapper for its command line interface. One can use this program for configure a CMake project and edit settings of such configuration. Use this tag for questions specifically about usage of the cmake-gui program.

From the reference documentation:

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.

Use this tag for questions specifically about usage of the cmake-gui program and not for questions about usage of CMake in general.

261 questions
68
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
  • 19,451
  • 13
  • 99
  • 197
43
votes
14 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
  • 2,210
  • 3
  • 31
  • 53
29
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
  • 17,051
  • 45
  • 159
  • 315
25
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
  • 7,542
  • 16
  • 69
  • 122
12
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
  • 307
  • 2
  • 10
12
votes
4 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
  • 131
  • 1
  • 8
11
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
  • 8,670
  • 28
  • 113
  • 206
10
votes
3 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
  • 339
  • 1
  • 3
  • 12
9
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
8
votes
1 answer

Cmake-gui not coming up on windows

I am using Cmake-gui and it was working fine, suddenly it started crashing. Whenever i try to open it, it gets added to the taskbar but app doesn't open. I waited for many hours also. I tried installing previous versions also but same thing is…
8
votes
4 answers

how to use framework using Cmake?

For Macos, I'd like to link to some framework. In windows, I would like to link to some library. For example, OpenGL Framework, how to express this requirement using cmake?
Adam Lee
  • 24,710
  • 51
  • 156
  • 236
7
votes
1 answer

cmake-gui tries to open but UI not displayed

I've tried to uninstall and reinstall CMake using the last version in Windows. When I launch cmake-gui.exe, the process is started, seems like everything is fine but the UI is not displayed. The preview in the task bar only shows a blank screen but…
7
votes
2 answers

Is it possible not to generate ALL_BUILD project in cmake?

I don't need ALL_BUILD subproject, can I avoid generating it? Thanx.
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
7
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,864
  • 3
  • 33
  • 39
6
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
  • 8,670
  • 28
  • 113
  • 206
1
2 3
17 18