Linked Questions
10 questions linked to/from Getting CMake to build out of source without wrapping scripts
0 votes
0 answers
49 views
CMake - Building a subproject during the configuration of the main project [duplicate]
I would like to know how I can configure and build a subproject during the configuration phase of my main project. In addition, I would like to link the main executable against this subproject during ...
658 votes
28 answers
892k views
Looking for a 'cmake clean' command to clear up CMake output
Just as make clean deletes all the files that a makefile has produced, I would like to do the same with CMake. All too often I find myself manually going through directories removing files like ...
60 votes
2 answers
16k views
What does the `-H.` option means for CMake?
This answer to a former question on CMake shows this command line: cmake -H. -Bbuild -G "MSYS Makefiles" What task does the -H. option perform here? cmake --help says that -H prints the help... I am ...
16 votes
2 answers
35k views
cmake create a shared object
I have three files: lib.c lib.h => They should be built as a .so file client.c => This should be built as an executable. Inside the client.c I include the lib.h file so as to get the ...
12 votes
1 answer
26k views
CMake with gmock
I just want to make sure that my understanding about CMakeLists.txt is correct. My dummy project structure: |-+ dummy |-+ CMakeLists.txt |-+ src |-- CMakeLists.txt |-- Converter....
1 vote
0 answers
4k views
cmake remove files/directories has no effect
This question is based on the following SO thread to disable in-source build: while the following setup disable in-source build, it left garbage like "CMakeCache.txt" and "CMakeFiles/". I tried to use ...
1 vote
0 answers
2k views
Whether does cmake work on cross-compiler Linaro chain?
I have a C project, which supports many platforms. Its generator has Borland Makefiles, NMake Makefiles, MSVC 6, 7, 8, 9, 11, Eclipse CDT4 ‐ Unix Makefiles etc. I have generated MSVC 9 solution with ...
0 votes
1 answer
1k views
Change CMake build Directory
I would like to change the Working Directory of cmake. For example currently when I run the cmake from c/ directory where is the CMakeLists.txt, this will be the created directories and files: c/...
1 vote
1 answer
829 views
CMAKE for a build a simple framework
I have my mind crashing with cmake. After this answer I have tried to make a simple example and put it in github because there are a lot of file inside directories and could be boring copy everything ...
0 votes
0 answers
48 views
Can I define a project directory?
When I run Cmake I transmit a directory with a CMakeLists.txt, but project build in working directory. Can I transmit a destination directory? P.S I can't to wrtite cd .\build cmake ..