mirror of
https://github.com/nicbarker/clay.git
synced 2025-05-13 05:48:04 +00:00
Compare commits
11 Commits
7cd48bd336
...
da490f0a83
Author | SHA1 | Date | |
---|---|---|---|
|
da490f0a83 | ||
|
ac61107eee | ||
|
8237122350 | ||
|
077eee61a5 | ||
|
5446fb6d7e | ||
|
f186024e74 | ||
|
73d2186d95 | ||
|
5cca7f5026 | ||
|
bebf60a9eb | ||
|
1675f0eaf3 | ||
|
6c0061cab8 |
@ -8,6 +8,7 @@ add_subdirectory("examples/cpp-project-example")
|
|||||||
# Don't try to compile C99 projects using MSVC
|
# Don't try to compile C99 projects using MSVC
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
add_subdirectory("examples/raylib-sidebar-scrolling-container")
|
add_subdirectory("examples/raylib-sidebar-scrolling-container")
|
||||||
|
add_subdirectory("examples/multi-context-raylib-sidebar-scrolling-container")
|
||||||
add_subdirectory("examples/raylib-multi-context")
|
add_subdirectory("examples/raylib-multi-context")
|
||||||
# add_subdirectory("examples/cairo-pdf-rendering") Some issue with github actions populating cairo, disable for now
|
# add_subdirectory("examples/cairo-pdf-rendering") Some issue with github actions populating cairo, disable for now
|
||||||
add_subdirectory("examples/clay-official-website")
|
add_subdirectory("examples/clay-official-website")
|
||||||
|
@ -0,0 +1,35 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.27)
|
||||||
|
project(clay_examples_multi_context_raylib_sidebar_scrolling_container C)
|
||||||
|
set(CMAKE_C_STANDARD 99)
|
||||||
|
|
||||||
|
# Adding Raylib
|
||||||
|
include(FetchContent)
|
||||||
|
set(FETCHCONTENT_QUIET FALSE)
|
||||||
|
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples
|
||||||
|
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # don't build the supplied example games
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
raylib
|
||||||
|
GIT_REPOSITORY "https://github.com/raysan5/raylib.git"
|
||||||
|
GIT_TAG "master"
|
||||||
|
GIT_PROGRESS TRUE
|
||||||
|
GIT_SHALLOW TRUE
|
||||||
|
)
|
||||||
|
|
||||||
|
FetchContent_MakeAvailable(raylib)
|
||||||
|
|
||||||
|
add_executable(clay_examples_multi_context_raylib_sidebar_scrolling_container main.c)
|
||||||
|
|
||||||
|
target_compile_options(clay_examples_multi_context_raylib_sidebar_scrolling_container PUBLIC)
|
||||||
|
target_include_directories(clay_examples_multi_context_raylib_sidebar_scrolling_container PUBLIC .)
|
||||||
|
|
||||||
|
target_link_libraries(clay_examples_multi_context_raylib_sidebar_scrolling_container PUBLIC raylib)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
|
||||||
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
TARGET clay_examples_multi_context_raylib_sidebar_scrolling_container POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/resources
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/resources)
|
259
examples/multi-context-raylib-sidebar-scrolling-container/main.c
Normal file
259
examples/multi-context-raylib-sidebar-scrolling-container/main.c
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
Loading…
Reference in New Issue
Block a user