Create a .gitignore file inside a build folder. This way this folder
will be ignored by git and hence, no entry in the root .gitignore is
required.
For more information see this post:
https://www.scivision.dev/cmake-auto-gitignore-build-dir/
.deps/
.libs/
.kdev4/
-build/
# kdevelop
*.kdevelop.pcs
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+if(NOT PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
+ # Auto-create a .gitignore in the out-of-source build directory.
+ file(GENERATE OUTPUT .gitignore CONTENT "*")
+endif()
+
add_definitions(-Wall)
include(CMakeOptions.txt)