Linked Questions

0 votes
0 answers
49 views

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 ...
DeX97's user avatar
  • 657
658 votes
28 answers
892k views

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 ...
Bill Cheatham's user avatar
60 votes
2 answers
16k views

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 ...
Eleno's user avatar
  • 3,036
16 votes
2 answers
35k views

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 ...
Sankar's user avatar
  • 6,591
12 votes
1 answer
26k views

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....
dptd's user avatar
  • 284
1 vote
0 answers
4k views

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 ...
python152's user avatar
  • 1,971
1 vote
0 answers
2k views

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 ...
Robert William's user avatar
0 votes
1 answer
1k views

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/...
tobias88's user avatar
  • 130
1 vote
1 answer
829 views

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 ...
nkint's user avatar
  • 11.8k
0 votes
0 answers
48 views

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 ..
vlad4378's user avatar
  • 903