cmake
cmake: Change PREFIX in EXTERNALPROJECT_ADD depending on Operating System
I need to change the cmake PREFIX in the following code depending on the operating system. It tried it this way:[详细]
2023-04-13 06:15 分类:问答CMake: how to create a CMakeLists.txt that runs ./configure once?
How do I create a CMakeLists.txt for gmock to configure only once? I tried: ADD_CUSTOM_TARGET( gmock DEPENDS ${CMAKE_CURRENT_LIST_DIR}/gmock-1.6.0/lib/.libs/libgmock.a COMMAND cd ${CMAKE_CURRENT_LIS[详细]
2023-04-13 06:08 分类:问答CMake : How to get the name of all subdirectories of a directory?
I have two questions relative to CMake Assume that we have a variable ${MY_CURRENT_DIR} that contains the path of a directory that contains several subdirectories : mydir1, mydir2 and mydir3. I wan开[详细]
2023-04-13 04:52 分类:问答cmake/ctest: is it possible to use the creation of build targets as tests?
I have a program which reads a description of a file format (ISO 10303-11 for the curious) and generates c++ from it. The generated code is compiled into a library, and the library is linked with vari[详细]
2023-04-13 01:47 分类:问答CMake: ordering of include directories (How to mix system- and user-based include paths?)
I\'ve got a CMake project that includes and links against two libraries, say A and B (actually it\'s more than two and one of them is boost stuff, but that doesn\'t really matter here). Both are locat[详细]
2023-04-12 22:32 分类:问答How to use FIND_JNI on cmake
I\'m trying to write a build for my project where I\'m trying to replace autobuild, and I need to proper开发者_开发百科 use FIND_JNI.[详细]
2023-04-12 13:45 分类:问答Fast Qt C++ compile on windows
I have a large project that uses the Qt framework and am trying to find the fastest way to compile it on my Windows install.[详细]
2023-04-12 04:47 分类:问答Conditional CMAKE link to rt-library
How to write CMakeLists.txt to conditionally link to the system-wide librt librar开发者_运维知识库y only when on Linux environment?cmake has several predefined variables useful for environment detecti[详细]
2023-04-11 20:09 分类:问答How copy a file to the same directory as the .exe file
开发者_Python百科This i probably trival, but I haven\'t figured it out yet. I have a .ini file in the same directory as the source code and I want cmake to copythis inifile.ini to the directory where[详细]
2023-04-11 19:19 分类:问答Can CMake use g++ to compile C files?
开发者_如何学运维I have worked on a project where I was using g++ to compile C code in files that end in .c. The reason is that I\'m told that g++ has better warning messages.[详细]
2023-04-11 18:12 分类:问答