File tree Expand file tree Collapse file tree 5 files changed +530
-1
lines changed Expand file tree Collapse file tree 5 files changed +530
-1
lines changed Original file line number Diff line number Diff line change 1
- * .exe
1
+ * .exe
2
+ build_raylib /
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
# multitasking-scheduling-algorithm-simulation-system
2
2
multitasking scheduling algorithm simulation system
3
+
4
+ # raylib:
5
+ ```
6
+ mkdir build_raylib
7
+ cd build_raylib
8
+ cmake ..
9
+ make
10
+ ```
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments