Fix calls to slint_target_sources

Use the .slint extension
This commit is contained in:
Simon Hausmann 2022-02-02 10:39:56 +01:00
parent ef822cc1e8
commit 95452ccab3
7 changed files with 10 additions and 10 deletions

View file

@ -9,12 +9,12 @@ endif()
add_executable(memory_tutorial_initial main_initial.cpp)
target_link_libraries(memory_tutorial_initial PRIVATE Slint::Slint)
slint_target_sources(memory_tutorial_initial memory.60)
slint_target_sources(memory_tutorial_initial memory.slint)
add_executable(memory_tutorial_tiles_from_cpp main_tiles_from_cpp.cpp)
target_link_libraries(memory_tutorial_tiles_from_cpp PRIVATE Slint::Slint)
slint_target_sources(memory_tutorial_tiles_from_cpp memory_tiles_from_cpp.60)
slint_target_sources(memory_tutorial_tiles_from_cpp memory_tiles_from_cpp.slint)
add_executable(memory_tutorial_game_logic main_game_logic.cpp)
target_link_libraries(memory_tutorial_game_logic PRIVATE Slint::Slint)
slint_target_sources(memory_tutorial_game_logic memory_game_logic.60)
slint_target_sources(memory_tutorial_game_logic memory_game_logic.slint)

View file

@ -28,12 +28,12 @@ FetchContent_MakeAvailable(SixtyFPS)
add_executable(memory_game main.cpp)
target_link_libraries(memory_game PRIVATE Slint::Slint)
slint_target_sources(memory_game memory.60)
slint_target_sources(memory_game memory.slint)
```
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
`slint_target_sources(memory_game memory.60)`, which is a SixtyFPS function used to
`slint_target_sources(memory_game memory.slint)`, 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: