-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change handling of samples that require Freetype
- Loading branch information
Showing
3 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# Add CMake subdirectories of basic samples | ||
add_subdirectory("benchmark") | ||
add_subdirectory("demo") | ||
add_subdirectory("bitmapfont") | ||
|
||
# Negotiate inclusion of Lottie sample | ||
if(RMLUI_LOTTIE_PLUGIN) | ||
add_subdirectory("lottie") | ||
else() | ||
message(NOTICE "Lottie sample disabled due to RMLUI_LOTTIE_PLUGIN=OFF") | ||
# If a font interface has been selected, add CMake subdirectories of samples that require it | ||
if(NOT (RMLUI_FONT_INTERFACE STREQUAL "none")) | ||
add_subdirectory("benchmark") | ||
add_subdirectory("demo") | ||
|
||
# Negotiate inclusion of Lottie sample | ||
if(RMLUI_LOTTIE_PLUGIN) | ||
add_subdirectory("lottie") | ||
else() | ||
message(NOTICE "Lottie sample disabled due to RMLUI_LOTTIE_PLUGIN=OFF") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
if(NOT (RMLUI_FONT_INTERFACE STREQUAL "none")) | ||
# Declare executable | ||
add_executable(rmlui_sample_benchmark WIN32 | ||
src/main.cpp | ||
) | ||
# Declare executable | ||
add_executable(rmlui_sample_benchmark WIN32 | ||
src/main.cpp | ||
) | ||
|
||
# Link shell library | ||
target_link_libraries(rmlui_sample_benchmark PRIVATE rmlui_sample_shell) | ||
endif() | ||
# Link shell library | ||
target_link_libraries(rmlui_sample_benchmark PRIVATE rmlui_sample_shell) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
if(NOT (RMLUI_FONT_INTERFACE STREQUAL "none")) | ||
# Declare executable | ||
add_executable(rmlui_sample_demo WIN32 | ||
src/main.cpp | ||
) | ||
# Declare executable | ||
add_executable(rmlui_sample_demo WIN32 | ||
src/main.cpp | ||
) | ||
|
||
# Link shell library | ||
target_link_libraries(rmlui_sample_demo PRIVATE rmlui_sample_shell) | ||
endif() | ||
# Link shell library | ||
target_link_libraries(rmlui_sample_demo PRIVATE rmlui_sample_shell) |