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
4
votes
5 answers

Exporting cmake-gui options

I have a library with a bunch of different configuration options. We usually configure the build with cmake-gui and ticking a few checkboxes. I want to automate this into a .sh script using just cmake. e.g. In GUI -> selects a bunch of different…
ButterDog
  • 5,115
  • 6
  • 43
  • 61
4
votes
1 answer

Visual Studio 2013 and Cmake?

I have been using 2010 on a project. The project was built using cmake, when cmake chose to use the compiler Visual Studio 2010. Now I intend to move the whole set up of the project to Visual Studio 2013. So, today I installed Visual Studio 2013.…
4
votes
1 answer

Create a new cmake input variable

is it possible to create a new cmake variable ? when I run cmake through gui ccmake . a set of variables appear on the screen . I want an extra variable which could have three string values and depending on those strings I can modify my build…
theadnangondal
  • 1,546
  • 3
  • 14
  • 28
4
votes
3 answers

How do I allow users to reconfigure the compiler to use with cmake?

I want to allow users to run a cmake configuration tool (such as ccmake or cmake-gui) to change which compiler is used. This is necessary as I'm building a cross-platform program which sometimes runs on a cluster (and therefore needs the…
Avacar
  • 87
  • 1
  • 7
3
votes
1 answer

Why my CMake GUI looks different than usual

I have reinstalled CMake many times and still I don't have the Configure and Generate options on the CMake GUI. Can someone tell me how I can delete the old configuration?
3
votes
1 answer

How to check why cmake configuration was rejected in find_package()

So I am attempting to build a cmake projects that others have been able to build successfully. The main issue is that I always end up with the classic cmake configuration error when doing a find_package(): could not find configuration for package…
3
votes
2 answers

export CMake variables from GUI to command line

Is it possible to export all variables values that were set in CMake-GUI to single command line string so it can be used from external tools quickly? So the output would be something like: cmake -DVar1=ON -DVar2="foo" ...
Humam Helfawi
  • 19,566
  • 15
  • 85
  • 160
3
votes
1 answer

How to include a folder path using cmake into a C/C++ program

My c++ program needs a folder path and I like to input from cmake configuration. For example, my c++ program is int main(){ std::string…
batuman
  • 7,066
  • 26
  • 107
  • 229
3
votes
1 answer

CMake - set_property could not find CACHE variable

Disclaimer: I'm aware of this question. However, The OP's needs are different to mine: what he actually wants is to port an app to Linux and therefore the answers go in that line, not answering what I want to know: the reasons of the error. I'm…
El Marce
  • 3,144
  • 1
  • 26
  • 40
3
votes
1 answer

install target on visual studio generated by cmake: what is it and how I can use it?

I am using cmake to generate solutions for visual studio and it worked very well. I noted that as part of build, it also generate a target called install on visual studio, supposedly to install the build files (such as libraries or include files),…
mans
  • 17,104
  • 45
  • 172
  • 321
3
votes
1 answer

could not find load file OpenCVModules.cmake

I'm doing this for the first time but couldn't get going with CMake find_package(OpenCV) OpenCVModules.cmake is in the same folder as OpenCVConfig.cmake but for some reasons CMake configure fails with this error. I'm on Windows using Visual Studio…
Arun
  • 2,087
  • 2
  • 20
  • 33
3
votes
2 answers

Linking both third party precompiled dynamic and static libaries in Windows

Lately, I have been using cmake as a generator for my projects. I have successfully generated many vtk and other application projects. However, I now face a problem when trying to link both dynamic and static precompiled libraries. In particular, I…
GioR
  • 596
  • 2
  • 8
  • 19
3
votes
1 answer

Building gtest for visual studio using cmake

I'm really new to cmake, I'm using it because I want to build gtest for multiple versions of VS at the same time. I havent been able to generate anything using cmake yet.. maybe its overkill for my application? How can I build gtest for multiple…
user3339357
  • 292
  • 3
  • 16
3
votes
1 answer

CMake GUI: Specify library path for Windows

I'm compiling a CMake-based project (SOCI to be specific), that depends on SQLite. This being Windows, there are no standard paths for the project to look into, so it can't find SQLite, and I get this when configuring: SQLite3 not found, some…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
2
votes
1 answer

CMake - how to add a missing library easily?

I'm trying to install Darknet from here https://github.com/AlexeyAB/darknet using these instructions: https://github.com/AlexeyAB/darknet#how-to-compile-on-windows-using-cmake Looked easy enough, I installed all the required pre-requisites... I get…
ROBYER1
  • 117
  • 8
1 2
3
17 18