https://bugs.kde.org/show_bug.cgi?id=162606

ivan.pesso...@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|project                     |Build tools: CMake
            Product|kdevplatform                |kdevelop
                 CC|                            |ivan.pesso...@gmail.com
            Version|1.0.0                       |5.11.230400

--- Comment #4 from ivan.pesso...@gmail.com ---
I don't know if it's bad practice or not to resume this old "bug", but I think
this issue should be addressed.

CMake allow to specify a source and a build folder with command line parameters
-S <src> and -B <build> respectively, and even the cmake-gui allow to select
the two of them.
It's usefull to move all source files (including root CMakeLists.txt) in a
separate folder other than project files, so you can share source files with
users using different IDE without the need to .gitignore them.

Like this:

root folder
  |
  +-- build/
  |     |
  |     +-- <output build files>
  +-- src/
  |     |
  |     +-- <input source files>
  |     +-- CMakeLists.txt
  |     +-- main.cpp
  +-- .kdev4/
  |     |
  |     +-- <user preferences files>
  +-- project.kdev4

With this layout the git repo can be inside the src/ folder if you want to
share only the sources, or in the root if you want to share both sources and
project files.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to