Skip to content

Commit 5fbf533

Browse files
committed
update
1 parent 432a02a commit 5fbf533

File tree

5 files changed

+530
-1
lines changed

5 files changed

+530
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*.exe
1+
*.exe
2+
build_raylib/

CMakeLists.txt

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
cmake_minimum_required(VERSION 3.0)
2+
project(multitasking-scheduling-algorithm-simulation-system C)
3+
set(CMAKE_C_STANDARD 99)
4+
5+
# Adding Raylib
6+
include(FetchContent)
7+
set(FETCHCONTENT_QUIET FALSE)
8+
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples
9+
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # don't build the supplied example games
10+
11+
FetchContent_Declare(
12+
raylib
13+
GIT_REPOSITORY "https://github.com/raysan5/raylib.git"
14+
GIT_TAG "master"
15+
GIT_PROGRESS TRUE
16+
GIT_SHALLOW 1
17+
)
18+
19+
FetchContent_MakeAvailable(raylib)
20+
21+
# adding raygui
22+
FetchContent_Declare(
23+
raygui
24+
GIT_REPOSITORY "https://github.com/raysan5/raygui.git"
25+
GIT_TAG "master"
26+
GIT_PROGRESS TRUE
27+
GIT_SHALLOW 1
28+
)
29+
30+
FetchContent_MakeAvailable(raygui)
31+
32+
# Adding our source files
33+
# file(GLOB_RECURSE PROJECT_SOURCES CONFIGURE_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/sources/*.c") # Define PROJECT_SOURCES as a list of all source files
34+
# set(PROJECT_INCLUDE "${CMAKE_CURRENT_LIST_DIR}/sources/") # Define PROJECT_INCLUDE to be the path to the include directory of the project
35+
36+
# Declaring our executable
37+
# add_executable(${PROJECT_NAME})
38+
# target_sources(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCES})
39+
# target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_INCLUDE})
40+
# target_link_libraries(${PROJECT_NAME} PRIVATE raylib)
41+
42+
# Setting ASSETS_PATH
43+
# target_compile_definitions(${PROJECT_NAME} PUBLIC ASSETS_PATH="${CMAKE_CURRENT_SOURCE_DIR}/assets/") # Set the asset path macro to the absolute path on the dev machine
44+
#target_compile_definitions(${PROJECT_NAME} PUBLIC ASSETS_PATH="./assets") # Set the asset path macro in release mode to a relative path that assumes the assets folder is in the same directory as the game executable

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
# multitasking-scheduling-algorithm-simulation-system
22
multitasking scheduling algorithm simulation system
3+
4+
# raylib:
5+
```
6+
mkdir build_raylib
7+
cd build_raylib
8+
cmake ..
9+
make
10+
```

src/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
set -xe
3+
4+
RAYLIB_PATH="../build_raylib/_deps/raylib-build/raylib"
5+
6+
gcc -I"$RAYLIB_PATH/include" -L"$RAYLIB_PATH" -o main2 main2.c -lraylib -lm -lglfw -ldl -lpthread

0 commit comments

Comments
 (0)