cmake
cmake variable scope, add_subdirectory
I have a CMakeLists.txt in my project root and one in my /src folder. The one in the /src folder only contains a variable with the .cpp files (set (SOURCEFILES main.cpp foo.cpp)) and in the root CMake[详细]
2023-03-24 07:45 分类:问答Linking problem when trying to cross-compile a qt application using cmake
I\'m currently switching the build system of my Qt application from qmake to cmake. While trying to cross-compile for Windows with MinGW (static Qt build), I came across a strange problem I cannot exp[详细]
2023-03-24 07:27 分类:问答How to detect sse availability in CMake
In a CMakeLists.txt file, is there a way to detect the highest level of SSE available, and save it to CMAKE_CXX_FLAGS? In other words, I\'d like to be able to write 开发者_JS百科something like:[详细]
2023-03-24 03:17 分类:问答Generate a Makefile from source and executable?
I\'ve got a large code base that builds fine using a old custom build system cobbled together using bunch of bash scripts and simple Makefiles recursively combined.[详细]
2023-03-23 21:59 分类:问答cmake, several questions
I\'m new to cmake. Are there any good tutorials that go deeper into the matter? Are there any articles about \"good pra开发者_StackOverflow中文版ctices\" with cmake?[详细]
2023-03-23 16:19 分类:问答cmake hierarchy zlib, libpng and my own app
I\'m trying to create a CMake hierarchy for an application that uses libpng. Libpng requires zlib. Since a CMakeLists.txt is distributed with both zlib and libpng my first idea was to make the follow[详细]
2023-03-23 16:14 分类:问答Getting undefined reference error at adding simple class to library
I am working with a rather sizeable library which uses CMake for compilation/linking. I need to add some functionality, thus I need to add some classes to the library. The problem is that when I add e[详细]
2023-03-23 07:29 分类:问答Sensitising intermittent parallel build issue (cmake)
I am trying to debug an intermittent parallel build issue in my cmake bui开发者_C百科ld system around some generated files. It is however difficult to reliably test or reproduce the issue.[详细]
2023-03-23 07:20 分类:问答LNK2019 when including asio headers, solution generated with cmake
I am trying to port a big project from gcc (Linux) to msvc (windows), using cmake and boost libraries.[详细]
2023-03-22 20:28 分类:问答How do I specify build options for CMake-based projects?
I don\'t understand how to configure project and handling command line options using CMake. I need to set variables of directories of 3rd party library (for example Poco and GTest).[详细]
2023-03-22 08:57 分类:问答