mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
C++ migration guide: merge the two cmake entries
I kept it at the beginning because that's the first thing to do while migrating
This commit is contained in:
parent
d26b8d57e8
commit
40c0e446c8
1 changed files with 4 additions and 9 deletions
|
@ -10,9 +10,12 @@ In version 0.2.0 we have increased the minimum version of C++. You need to have
|
|||
|
||||
If you are building Slint from source, you need to make sure that your Rust installation is up-to-date. If you have installed Rust using `rustup`, then you can upgrade to the latest Version of Rust by running `rustup update`.
|
||||
|
||||
### CMakeLists.txt
|
||||
### CMake interface
|
||||
|
||||
- When using `FetchContent`, the `SOURCE_SUBDIR` has changed from `api/sixtyfps-cpp` to `api/cpp`
|
||||
- `find_package(SixtyFPS)` becomes `find_package(Slint)`.
|
||||
- The `SixtyFPS::SixtyFPS` CMake target was renamed to `Slint::Slint`.
|
||||
- The `sixtyfps_target_60_sources` CMake command was renamed to `slint_target_sources`.
|
||||
|
||||
### Models
|
||||
|
||||
|
@ -63,11 +66,3 @@ instance->invoke_callback("foo", args);
|
|||
|
||||
The `Value::Type::Array` has been replaced by `Value::Type::Model`
|
||||
|
||||
|
||||
### CMake Interface
|
||||
|
||||
The CMake interface has changed mostly in terms of renaming `SixtyFPS` to `Slint`:
|
||||
|
||||
* `find_package(SixtyFPS)` becomes `find_package(Slint)`.
|
||||
* The `SixtyFPS::SixtyFPS` CMake target was renamed to `Slint::Slint`.
|
||||
* The `sixtyfps_target_60_sources` CMake command was renamed to `slint_target_sources`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue