Top "Cmake" questions

CMake is a cross-platform, open-source build system generator.

Changing CMAKE_CXX_FLAGS in project

I have the following content in my CMakeLists.txt: project( Matfile ) SET ( CMAKE_CXX_FLAGS "-std=c++0x" ) set ( SOURCES "…

cmake compiler-flags
How to copy directory from source tree to binary tree?

Copying directory from source tree to binary tree. For example: How to copy www to bin folder. work ├─bin └─src ├─…

c copy cmake
Creating a directory in CMake

In CMake, I want to create a directory if it doesn't already exist. How can I do this?

cmake
cmake if else with option

I have a problem using option together with if-else statement in cmake. project(test) option(TESTE "isso é um teste" OFF) …

if-statement cmake cmakelists-options
How to configure Eclipse CDT for cmake?

How to configure Eclipse "Helios" with plugin CDT for cmake? cmake all CMake Error: The source directory "D:/javaworkspace/workspace/…

cmake eclipse-cdt
Is it better to specify source files with GLOB or each file individually in CMake?

CMake offers several ways to specify the source files for a target. One is to use globbing (documentation), for example: …

cmake
Unable to find CMake in Android Studio

I need to add C/C++ code in my Android program for which I needed LLDB, CMake, and NDK. I …

android android-studio android-ndk cmake
Find package Eigen3 for CMake

CMake cannot find my Eigen3 package. I set an environment variable called EIGEN3_INCLUDE_DIR pointing to the path where …

cmake eigen
How to let cmake find CUDA

I am trying to build this project, which has CUDA as a dependency. But the cmake script cannot find the …

c++ build cuda cmake
What is the difference between include_directories and target_include_directories in CMake?

I have a directory structure for my C++ code which goes like this : | |->include |->src I …

c++ cmake