mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
C++ docs: One more small cmake touchup
Typo fix and match the order of cmake commands with the list in the docs earlier.
This commit is contained in:
parent
ca0dff21b3
commit
2440d92c6e
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ in locating the package.
|
|||
|
||||
Once SixtyFPS is built, you can use it in your CMake application or library target in two steps:
|
||||
|
||||
1. Associated the `.60` files that you'd like to use by calling the `sixtyfps_target_60_sources` cmake command. The first parameter is
|
||||
1. Associate the `.60` files that you'd like to use by calling the `sixtyfps_target_60_sources` cmake command. The first parameter is
|
||||
your application (or library) CMake target, and the parameters following are the names of the `.60` files. This will result in the
|
||||
`.60` files to be compiled into C++ source code.
|
||||
2. The generated C++ source code also needs the SixtyFPS run-time library. This dependency is satisfied by linking `SixtyFPS::SixtyFPS`
|
||||
|
@ -115,8 +115,8 @@ FetchContent_Declare(
|
|||
FetchContent_MakeAvailable(SixtyFPS)
|
||||
|
||||
add_executable(my_application main.cpp)
|
||||
target_link_libraries(my_application PRIVATE SixtyFPS::SixtyFPS)
|
||||
sixtyfps_target_60_sources(my_application my_application_ui.60)
|
||||
target_link_libraries(my_application PRIVATE SixtyFPS::SixtyFPS)
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue