Skip to content

Commit 57e7408

Browse files
committed
delete CMakeLists.txt
1 parent e516b9b commit 57e7408

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.clang-format
22
.idea
3-
cmake-build-debug
4-
main.cpp
3+
cmake-build-debug

CMakeLists.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,17 @@ $ uv pip install -r requirements.txt
2020
```shell
2121
$ mkdocs serve
2222
```
23+
24+
## ライブラリ使用方法
25+
26+
### CMakeLists を使用する場合
27+
28+
以下のように追記すればOK。
29+
30+
```
31+
add_library(cpplib INTERFACE)
32+
target_include_directories(cpplib INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include)
33+
34+
add_executable(main main.cpp)
35+
target_link_libraries(main PRIVATE cpp)
36+
```

0 commit comments

Comments
 (0)