cmake-gui

How to preserve single quotes in a CMake cached variable?

给你一囗甜甜゛ 提交于 2020-01-06 04:21:16
问题 I have a variable SET(CODE_COVERAGE_EXCLUSION_LIST "" CACHE STRING "List of resources to exclude from code coverage analysis") It must contain a list of expressions such as : 'tests/*' '/usr/*' When trying to set the default value to the above expressions, the single quotes are removed. How to preserve them ? Moreover, when I try to pass the exclusion list like this cmake -DCODE_COVERAGE_EXCLUSION_LIST="'tests/*' '/usr/*'" .. The initial and final single quotes are lost. How to preserve them

Using HDF5 Libraries with CMake on Windows (Error: “Could NOT find HDF5”)

谁说胖子不能爱 提交于 2019-12-24 05:44:50
问题 I want to use the HDF5 libraries in my C++ program. I am using the VS 2010 x64 compiler and CMake 3.8.0rc2 on Windows 7. The HDF5 version I installed is 1.8.10 (installed by running the official "Installer"). In my CMakeLists file, I added the following lines: FIND_PACKAGE ( HDF5 REQUIRED ) INCLUDE_DIRECTORIES (${HDF5_INCLUDE_DIRS}) SET (HDF5_LIBS ${HDF5_LIBS} ${HDF5_LIBRARIES}) ... target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} ${HDF5_LIBS}) CMake shows the following error message

export CMake variables from GUI to command line

北慕城南 提交于 2019-12-23 19:23:50
问题 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" ... 回答1: You can get them from Tools->"Show My Changes" 回答2: There is no cmake-gui integrated way to export or document the changed variables over several configure/generate runs. But each change to a cached variable runs the configure step again and so I came up with the

Cmake gui resets parameter. How do I set parameter in cmake gui?

笑着哭i 提交于 2019-12-23 05:13:08
问题 I am trying to build cmake after vtk has been built. I see that WITH_VTK is checked, so I try to change VTK_PATH inplace: Unfortunately I get this message VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK in log window and also the variable resets after pressing Configure or Generate . I tried to clear cache from File menu. And also tried to ' Add Entry '. Nothing helps. Is there any instruction how to set parameter in this beautifull app? 回答1: Ok, I've found

how to use framework using Cmake?

谁都会走 提交于 2019-12-14 03:42:52
问题 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? 回答1: You could try the following code: target_link_libraries(<target name> "-framework AVFoundation" "-framework CoreGraphics" "-framework CoreMotion" "-framework Foundation" "-framework MediaPlayer" "-framework OpenGLES" "-framework QuartzCore" "-framework UIKit" ) 回答2: To tell CMake that you want to link to OpenGL, add

CMake : C and CXX compiler identification is unknown Win10 CMakeGUI

谁都会走 提交于 2019-12-12 14:45:32
问题 So I am trying to configure a file based on this tutorial on youtube which is very simple : https://www.youtube.com/watch?v=gYmgbqGfv-8 I use CMake GUI in Windows 10 and I have a running Visual Studio 2015 which is able to build c++ projects already (I've used it for some time) I use "Visual Studio 15 2017" I created a folder named hellocmake and hellocmake/build for both inputs: my inputs However when I tried to configure, it says that CMake Error at CMakeLists.txt:1 (PROJECT): No CMAKE_C

CMake Boost Libraries Not Found Windows7

大城市里の小女人 提交于 2019-12-11 15:33:52
问题 I am getting the below error when trying to configure CGAL using cmake. Does anyone have an insight on this error . The path is set accordingly but still the error keeps appearing BOOST_ROOT = C:/dev/libboost_1_55_0/boost_1_55_0 BOOST_INCLUDEDIR = C:/dev/libboost_1_55_0/boost_1_55_0/boost BOOST_LIBRARYDIR = C:/dev/libboost_1_55_0/boost_1_55_0/lib32-msvc-12 Could not find the following static Boost libraries: boost_thread boost_system Some (but not all) of the required Boost libraries were

OpenGL GLFW build errors OR linking errors

↘锁芯ラ 提交于 2019-12-11 10:26:08
问题 Can someone help me get GLFW working in Visual Studio 2012? I can't get past initial compilation. I keep getting unresolved externals for the GLFW functions. The problem is, I don't know what I'm doing wrong. I could be: Improperly making the source files with CMake. Improperly building the library. Improperly linking to the GLFW library. I'm not sure which of these it is, so I'll just list what I did: 1. Downloaded glfw-3.1.1 from glfw.org. 2. Used CMake GUI to make the source files. a. Set

Modifying variables in cmake-gui

天涯浪子 提交于 2019-12-11 08:38:25
问题 Here is said that to run cmake for each builds (debug and release) it is recommended to pass CMAKE_BUILD_TYPE as an argument to cmake , e.g. cmake -DCMAKE_BUILD_TYPE=Release .. or cmake -DCMAKE_BUILD_TYPE=Debug .. What is the equivalent of this in cmake-gui? When I press "Configure" then some variables pops-up in window and here I will create new one CMAKE_BUILD_TYPE=Debug and then press "Generate" is this equivalent of above mentioned command line passing? Thanks 回答1: Yes. It is equivalent.

Setting a cross-compiler file using the CMake GUI

强颜欢笑 提交于 2019-12-10 16:24:12
问题 I'm trying set-up my cross-compile build using CMake. So far I'm setting the cross compiler file calling CMake like this from the command line: #Call cmake with the given options cmake -D CMAKE_TOOLCHAIN_FILE=$cross_cmp_file \ -D BUILD_TESTS:BOOLEAN=$build_test \ ../src This works just fine. Now I'm trying to set the CMAKE_TOOLCHAIN_FILE variable from the GUI by adding: #CMAKE cross compiler file set(CMAKE_TOOLCHAIN_FILE "Toolchain file" CACHE FILEPATH "../arm-crosscompile.cmake") To my