Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xpko authored Oct 26, 2024
1 parent 3a5e8c8 commit 4f8e89b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions vixl/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ scons
编译后,会有个静态库:obj/latest/libvixl.a

## 运行demo
```CMakeLists.txt
新建目录vixl-demo001
将libvixl.a静态库复制到该目录下
复制所有头文件并保持文件结构:`find . -name "*.h" | cpio -pdm <target_dir>`
然后新建以下文件:
CMakeLists.txt
```
cmake_minimum_required(VERSION 3.16.3)
project(demo001)
set(CMAKE_CXX_STANDARD 17)
Expand All @@ -21,7 +26,7 @@ add_executable(demo001 main.cpp)
include_directories(${CMAKE_SOURCE_DIR}/include/)
target_link_libraries(demo001 ${CMAKE_SOURCE_DIR}/libvixl.a)
```
复制所有头文件并保持文件结构:`find . -name "*.h" | cpio -pdm <target_dir>`

main.cpp
```cpp
// Copyright 2014, VIXL authors
Expand Down

0 comments on commit 4f8e89b

Please sign in to comment.