Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged CMAKE

0 votes
1.4k views
1 answer
    According to the documentation of CMake I just have to write project(${PROJECT_NAME} LANGUAGES CUDA CXX) ... (CUDA) and cuda_add_executable? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
757 views
1 answer
    I have a two macro names, for example: macro(my_macro1) # stuff only to use in this macro endmacro() macro( ... this is my idea Any help? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.8k views
1 answer
    I have a relatively simple CMakeLists.txt that contains the following line(s): target_compile_features( ... support target_compile_features). See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
686 views
1 answer
    I'm trying to build some third party libraries from source using Visual Studio 2015. I'm creating the ... gotten the same hanging issue. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
950 views
1 answer
    I have a third party library with autotools project. I want to use ExternalProject_Add to build ... ExternalProject_Add/CONFIGURE_COMMAND ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
958 views
1 answer
    I am attempting to build massif-visualizer on CentOS 7. Unfortunately I'm having to try to guess at dependencies ... old? Or something else? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
818 views
1 answer
    Our CMakeList.txt had a target_include_directories creep in. It broke our downlevel clients, like Ubuntu LTS, CentOS and ... .8.11 and earlier? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
764 views
1 answer
    I would like to include a .cpp-file in two different targets (becoming two VS projects after running CMake). I ... there a way to solve this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
660 views
1 answer
    I have a CMake Project with roughly this structure: . |-- library1 | |-- CMakeLists.txt |-- library2 | |-- ... to work with cmake/3.13.4. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am using CMake with a custom toolchain that I built using yocto. I have a problem though, the toolchain has ... look in the target sysroot? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
939 views
1 answer
    I seem to be having trouble setting the include path (-I) using the include_directories() command in CMake. My ... that helped but no luck. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I'd like to do something like add_custom_command, with the output file name as a target in the generated ... dependency in the makefile. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
754 views
1 answer
    I have a project where "installing" the code is not quite as simple as just copying some files. With a ... any examples of something like this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
837 views
1 answer
    Trying to get find_path to do what I want. find_path(temmp include/help.h) message("temmp= ${temmp}") help. ... the find_path to run again.) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    On a linux machine, from a cmake project, I'm trying to call git using execute_process so that I can include info ... of what I'm missing here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
741 views
1 answer
    How can I prepend all filenames on the list with a common path prefix automatically? For instance having a list ... create new list of files? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
629 views
1 answer
    How can I prepend all filenames on the list with a common path prefix automatically? For instance having a list ... create new list of files? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
631 views
1 answer
    I have an OBJECT library objlib which is linked into the main target maintarget. The objlib has a dependent library, ... Is there a better way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
974 views
1 answer
    All I can say about those commands right now is pkg_search_module has some odd usage, where I have to write the ... does not work all the time See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
731 views
1 answer
    If you don't set the CMAKE_BUILD_TYPE, then, by default, it doesn't get cached. Should I cache it? e.g. ... ) Or does it not really matter? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
575 views
1 answer
    Given I have defined an executable with its main source file in a CMakeList.txt file: ADD_EXECUTABLE( ... included CMakeList.txt file? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
843 views
1 answer
    The CMake manual of Qt 5 uses find_package and says: Imported targets are created for each Qt module. Imported ... a imported target is created. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
784 views
1 answer
    I want to create a project in C++11 and I use CMake as my build system. How can I add a minimum ... version requisite in the CMake config files? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
566 views
1 answer
    From the docs page: CMAKE_BUILD_TYPE Specifies the build type on single-configuration generators. This statically ... I choose Release? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
740 views
1 answer
    From the Wiki: CMAKE_CURRENT_SOURCE_DIR this is the directory where the currently processed CMakeLists.txt is located ... hold different values? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    When running my build script that uses cmake I am getting the following output during the build process: ****** ... skipped" instead of "works"? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
904 views
1 answer
    I'm evaluating CLion 1.2.1 on an existing project which is already using CMake. The project is made up of a ... 'clean' which is not right. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
914 views
1 answer
    Is it possible to use target_compile_options() for only C++ files? I'd like to use it for a target ... through cmake's packages system. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...