mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-10 12:26:41 +00:00
Rename the SixtyFPS CMake interface
This commit is contained in:
parent
c333b4de2b
commit
b1a70f9e58
31 changed files with 161 additions and 152 deletions
|
@ -27,13 +27,13 @@ FetchContent_Declare(
|
|||
FetchContent_MakeAvailable(SixtyFPS)
|
||||
|
||||
add_executable(memory_game main.cpp)
|
||||
target_link_libraries(memory_game PRIVATE SixtyFPS::SixtyFPS)
|
||||
sixtyfps_target_60_sources(memory_game memory.60)
|
||||
target_link_libraries(memory_game PRIVATE Slint::Slint)
|
||||
slint_target_sources(memory_game memory.60)
|
||||
```
|
||||
|
||||
This should look familiar to people familiar with CMake. We see that this CMakeLists.txt
|
||||
references a `main.cpp`, which we will add later, and it also has a line
|
||||
`sixtyfps_target_60_sources(memory_game memory.60)`, which is a SixtyFPS function used to
|
||||
`slint_target_sources(memory_game memory.60)`, which is a SixtyFPS function used to
|
||||
add the `memory.60` file to the target. We must then create, in the same directory,
|
||||
the `memory.60` file. Let's just fill it with a hello world for now:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue