I am working on windows 7 with visual studio 2010.
I have a cmake building environment that does not work exactly like I would like it to. In particular, it executes a .cmake file at some point that processes all the correct files except one. I would like to run it manually to process the last file, can I ? How ?
(Details: the program I try to compile is opencv, especially the ocl module. The .cmake script I want to execute is cl2cpp.cmake)
Run cmake-gui.exe, which should be in your Start menu under Program Files, there may also be a shortcut on your desktop, or if you built from source, it will be in the build directory. A GUI will appear similar to what is shown below. The top two entries are the source code and binary directories.
In Qt Creator, go to File → Open File or Project… and choose CMakeLists. txt from the source folder you want to build. Qt Creator will prompt you for the location of the binary folder, calling it the “build directory”. By default, it suggests a path adjacent to the source folder.
CMakeLists. txt file is placed at the source of the project you want to build. CMakeLists. txt is placed at the root of the source tree of any application, library it will work for.
You can run a cmake script with the -P option on the command line, e.g.:
cmake -P cl2cpp.cmake
Of course that scripts needs to be able to work stand-alone.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With