@Gitter :gitter.im/cnruby
Code ID: basic_112
Code Name: Hello, Default Include Paths!
- The Structure of Project "basic_112"
- Get The Code with Shell Commands
- What is The
Folder's
Structure of Project CMake
Code- What is The
Command's
Structure of Project - What is The
Process's
Structure of Project - Demonstrate Build's Process in
CMake
- Analyze The Build of Project
- Final Summary
- References
- The Project's Commands
git clone https://github.com/cnruby/w3h1_cmake.git basic_112
cd basic_112
git checkout basic_112
code .
#<!-- markdown-exec(cmd:cat docs/tree.txt) -->#
.
├── CMakeLists.txt
└── src
├── CMakeLists.txt
├── header.hxx
└── main.cxx
#<!-- /markdown-exec -->
#<!-- markdown-exec(cmd:cat src/CMakeLists.txt) -->#
add_executable(
main_112
main.cxx
)
#target_include_directories(
# main_112
# PRIVATE
# ${PROJECT_SOURCE_DIR}/src/
#)
#<!-- /markdown-exec -->
#<!-- markdown-exec(cmd:cat shell/cl.sh) -->#!/bin/bash
# compile
c++ -c ./src/main.cxx -MD -MF ./bin/main.cxx.o.d \
-o ./bin/main.cxx.o
# link
c++ ./bin/main.cxx.o -o ./bin/main_112
#<!-- /markdown-exec -->
@Gitter: gitter.im/cnruby
@Github: github.com/cnruby
@Twitter: twitter.com/cnruby
@Blogspot: cnruby.blogspot.com
- https://stackoverflow.com/questions/4295414/cmake-default-include-path-on-unix
- https://stackoverflow.com/questions/4980819/what-are-the-gcc-default-include-directories
- https://stackoverflow.com/questions/13703647/how-to-properly-add-include-directories-with-cmake
- https://stackoverflow.com/questions/26243169/cmake-target-include-directories-meaning-of-scope
- https://stackoverflow.com/questions/23654168/how-to-query-the-default-include-paths-of-clang/23658940
- https://marketplace.visualstudio.com/items?itemName=foxundermoon.shell-format
- https://marketplace.visualstudio.com/items?itemName=truman.autocomplate-shell
ruby format-codes.rb
cmake -GNinja -Bbuild/
cmake --build build/ --clean-first -v
./bin/main_112
rm ./bin/main.* ./bin/main_*
./shell/start.sh
code ./shell/start.sh
code ./shell/cl.sh
exa -T &> docs/tree.txt