Hi all,
I’m writing a CMake file for a project that should be compiled both in Ubuntu
and OS X.
I want to use eclipse as IDE, gcc and C++ 11.
I read different threads that suggest how to enable C++ 11 in eclipse.
According to them I included these lines in my CMake:
set(CMAKE_CXX_FLAGS
.
Is that possible?
I know it is possible to do it with visual studio, but I don't know how to
do it with CMake.
Thanks in advance.
--
Luca Gherardi, PhD
Postdoc at ETH Zurich
Institute for Dynamic Systems and Control
Room
information.
Any idea?
Thanks,
Luca
From: Petr Kmoch [mailto:petr.km...@gmail.com]
Sent: mercoledì 5 febbraio 2014 12:34
To: Luca Gherardi
Cc: cmake@cmake.org
Subject: Re: [CMake] How to manage dependencies between projects in Visual
Studio
Hi Luca.
You could look into the CMake
And the CMakeLists of be would contain the following line:
Add_subdirectory(ABSOLUT_PATH_TO_A BUILD_A)
Does it make sense?
Thanks!
From: Petr Kmoch [mailto:petr.km...@gmail.com]
Sent: mercoledì 5 febbraio 2014 14:15
To: Luca Gherardi
Cc: cmake@cmake.org
Subject: Re: [CMake] How to manage
I have a projects in which the sources file are organizes in a hierarchy of
directories.
For example:
- Src
| - Folder A
| - 1.cpp
| - 1.hpp
| - FolderA1
| - 2.cpp
| - 2.hpp
| - Folder B
| - 3.cpp
| - 3.hpp
I wrote a CMakeLists.txt for generating a