add ComputeLibrary as a submodule for easier building
This commit is contained in:
parent
e9261a1929
commit
2d8349b737
3
.gitignore
vendored
3
.gitignore
vendored
@ -11,4 +11,5 @@ packages
|
||||
bin
|
||||
obj
|
||||
build
|
||||
makeP.bat
|
||||
old
|
||||
*user.bat
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "ComputeEngine"]
|
||||
path = ComputeEngine
|
||||
url = https://github.com/DawidPietrykowski/ComputeEngine
|
1
ComputeEngine
Submodule
1
ComputeEngine
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit c89dda21e209cd8284d44f27a666aeab2c3db096
|
10
README.md
10
README.md
@ -10,17 +10,19 @@ GPU Ray Tracing application based on my OpenGL Compute Engine.
|
||||
* GLFW
|
||||
* GLEW
|
||||
* [stb_image](https://github.com/nothings/stb)
|
||||
* [OpenGL Compute Engine](https://github.com/DawidPietrykowski/ComputeEngine)
|
||||
|
||||
## Build
|
||||
|
||||
Specify these root directories for dependencies in [make.bat](make.bat) script:
|
||||
* Clone this directory
|
||||
* Run git submodule init
|
||||
* Run git submodule update
|
||||
* Specify these root directories for dependencies in [make_all.bat](make_all.bat) script:
|
||||
* GLFW_ROOT
|
||||
* GLEW_ROOT
|
||||
* stb_image_ROOT
|
||||
* ComputeEngine_ROOT
|
||||
|
||||
Run [make.bat](make.bat) script.
|
||||
* Run [make_all.bat](make_all.bat).
|
||||
* Run [build.bat](build.bat).
|
||||
|
||||
## Config files
|
||||
|
||||
|
8
build.bat
Normal file
8
build.bat
Normal file
@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
set GLFW_ROOT=
|
||||
set GLEW_ROOT=
|
||||
set stb_image_ROOT=
|
||||
set ComputeEngine_ROOT=%CD%/ComputeEngine
|
||||
|
||||
cmake --build build --config Release
|
8
make.bat
8
make.bat
@ -1,8 +0,0 @@
|
||||
@echo off
|
||||
|
||||
set GLFW_ROOT=
|
||||
set GLEW_ROOT=
|
||||
set stb_image_ROOT=
|
||||
set ComputeEngine_ROOT=
|
||||
|
||||
cmake -B build -S . -DGLFW_ROOT=%GLFW_ROOT% -DGLEW_ROOT=%GLEW_ROOT% -Dstb_image_ROOT=%stb_image_ROOT% -DComputeEngine_ROOT=%ComputeEngine_ROOT%
|
10
make_all.bat
Normal file
10
make_all.bat
Normal file
@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
|
||||
set GLFW_ROOT=
|
||||
set GLEW_ROOT=
|
||||
set stb_image_ROOT=
|
||||
set ComputeEngine_ROOT=%CD%/ComputeEngine
|
||||
|
||||
cmake -B ComputeEngine/build -S ComputeEngine -DGLFW_ROOT=%GLFW_ROOT% -DGLEW_ROOT=%GLEW_ROOT% -Dstb_image_ROOT=%stb_image_ROOT%
|
||||
cmake --build ComputeEngine/build --config Release
|
||||
cmake -B build -S . -DGLFW_ROOT=%GLFW_ROOT% -DGLEW_ROOT=%GLEW_ROOT% -Dstb_image_ROOT=%stb_image_ROOT% -DComputeEngine_ROOT=%ComputeEngine_ROOT%
|
@ -1,2 +0,0 @@
|
||||
rmdir /s /q build
|
||||
make.bat
|
Loading…
Reference in New Issue
Block a user