Re: [CMake] How to add dependency relations between libs and executable

2016-04-20 Thread J Decker
On Wed, Apr 20, 2016 at 6:21 PM, vakano wrote: > Hi, Chuck, > > Thanks for the explanation, it is very clear now. > > One last question is: > > *folder/proj_a* > CMakeLists.txt: > add_executable(A main.cpp) > target_link_libraries(A B C) > > *folder/proj_b* > CMakeLists.txt: > project(proj_b) > ad

Re: [CMake] How to add dependency relations between libs and executable

2016-04-20 Thread vakano
Hi, Chuck, Thanks for the explanation, it is very clear now. One last question is: *folder/proj_a* CMakeLists.txt: add_executable(A main.cpp) target_link_libraries(A B C) *folder/proj_b* CMakeLists.txt: project(proj_b) add_library(B proj_b.cpp) in your proj_a example, when target_link_librairi

Re: [CMake] How to check if Eclipse CDT4 generated project is set up correctly?

2016-04-20 Thread Alexander Neundorf
On Monday, April 18, 2016 16:57:52 Nils Rathmann wrote: > Hi, > when I setup with the Eclipse CDT4 generator, as described here: > https://cmake.org/Wiki/Eclipse_CDT4_Generator4 > > my [Targets] folder contains virtual folders for CMakeRules, Header > Files, Object Files, Resources and Source File

[CMake] Adding include directories to generated CUDA files

2016-04-20 Thread Karl Ljungkvist
Hi all, I'm working with enabling CUDA support for the Finite Element Method library Deal.II, which includes a couple of cmake macros for the user to set up their Deal.II application. Inside one of these, I now need to correctly configure the include directories for the intermediately generat

Re: [CMake] Using Clang + Ninja on Windows?

2016-04-20 Thread Brad King
On 04/20/2016 10:01 AM, Johan Holmberg wrote: > I tried specifying "-GNinja" to cmake, and setting CC/CXX to > clang/clang++. Good. > But this didn't work. I get errors like: > > clang.exe: error: no such file or directory: '/nologo' > > indicating that CMake thinks it should pass Visual C++

[CMake] Using Clang + Ninja on Windows?

2016-04-20 Thread Johan Holmberg
Hi! How should I setup CMake to build a C/C++ application on Windows using clang/clang++ as compilers and Ninja as build tool? I tried specifying "-GNinja" to cmake, and setting CC/CXX to clang/clang++. But this didn't work. I get errors like: clang.exe: error: no such file or directory: '/nol

Re: [CMake] How to add dependency relations between libs and executable

2016-04-20 Thread Chuck Atkins
> So for this parallel project structure, an upper level cmakelist used to > organize and setup relationship with lib A, B, C right? > Correct. The top level CMakeLists.txt lets A B and C all build under a single configuration. One more question is, if use the upper level cmake list, lib_B , li

Re: [CMake] how to really change CMake linker

2016-04-20 Thread Claudio C
The proposed solution does not seem to work. There is now an issue related https://cmake.org/Bug/view.php?id=16059 -- Ing. Claudio Caraffi, PhD E-Mail: claudio.cara...@gmail.com -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/W

[CMake] Module CheckIncludeFile should notify in case of flag errors

2016-04-20 Thread Claudio C
I recently struggled with the command CheckIncludeFile (and siblings) while working with a custom toolchain. Even if I was setting the necessary CMAKE_SYSROOT, include_directories and even CMAKE_REQUIRED_INCLUDES, the commands would report a given header was not found. When I hacked into: CheckInc

Re: [CMake] How to use CMake with Eclipse CDT?

2016-04-20 Thread Matějů Miroslav , Ing .
Hi David, Generation of project files in CMake is a one-way process. CMake is not able to edit its own input (CMakeLists.txt). To update a project managed by CMake, you should update CMakeLists.txt manually and regenerate your CDT project. Best regards, Miroslav From: CMake [mailto:cmake-boun

[CMake] How to use CMake with Eclipse CDT?

2016-04-20 Thread David Aldrich
Hi I want to build an Eclipse CDT (C++) project on Linux that can be maintained using CMake. I have seen the notes on the Eclipse CDT4 Generator here: https://cmake.org/Wiki/Eclipse_CDT4_Generator Is the sole purpose of that generator to create a CDT project from a CMake makefile? Or, having

[CMake] How to use CMake with Eclipse CDT?

2016-04-20 Thread David Aldrich
Hi I want to build an Eclipse CDT (C++) project on Linux that can be maintained using CMake. I have seen the notes on the Eclipse CDT4 Generator here: https://cmake.org/Wiki/Eclipse_CDT4_Generator Is the sole purpose of that generator to create a CDT project from a CMake makefile? Or, having