-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
475 changed files
with
176,286 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CompileFlags: | ||
CompilationDatabase: "build" |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
cmake_minimum_required(VERSION 3.25) | ||
project(voxela) | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
find_package(OpenGL REQUIRED) | ||
|
||
include_directories(${OpenGL_INCLUDE_DIRS}) | ||
include_directories("${CMAKE_SOURCE_DIR}/includes") | ||
include_directories("${CMAKE_SOURCE_DIR}/includes/lib") | ||
|
||
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) | ||
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) | ||
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) | ||
set(GLFW_INSTALL OFF CACHE BOOL "GLFW lib only") | ||
set(GLAD_GL "${CMAKE_SOURCE_DIR}/src") | ||
|
||
add_subdirectory(.\\glfw-3.4) | ||
|
||
file(GLOB_RECURSE sources | ||
"${CMAKE_SOURCE_DIR}/src/*.c" | ||
"${CMAKE_SOURCE_DIR}/src/*.cpp" | ||
"${GLAD_GL}/*.c" | ||
) | ||
|
||
add_executable(voxela ${sources}) | ||
|
||
target_link_libraries(voxela glfw) | ||
target_link_libraries(voxela OpenGL::GL) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.