dependencies
This commit is contained in:
commit
d63a793fd8
6 changed files with 34 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
CMakeFiles
|
||||||
|
CMakeCache.txt
|
||||||
|
build/Release
|
||||||
|
build
|
||||||
|
CMakeUserPresets.json
|
7
CMakeLists.txt
Normal file
7
CMakeLists.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
project(glsl-basic CXX)
|
||||||
|
|
||||||
|
find_package(glfw3 3.3 REQUIRED)
|
||||||
|
|
||||||
|
add_executable(glsl-basic src/main.cpp)
|
||||||
|
target_link_libraries(glsl-basic glfw)
|
6
build.sh
Executable file
6
build.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
cd build
|
||||||
|
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
cmake --build .
|
||||||
|
./glsl-basic
|
4
conan.sh
Executable file
4
conan.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
conan install . --output-folder=build --build=missing
|
||||||
|
bash build.sh
|
6
conanfile.txt
Normal file
6
conanfile.txt
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[requires]
|
||||||
|
glfw/3.3.8
|
||||||
|
|
||||||
|
[generators]
|
||||||
|
CMakeDeps
|
||||||
|
CMakeToolchain
|
6
src/main.cpp
Normal file
6
src/main.cpp
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#include <iostream>
|
||||||
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
std::cout << "hello world";
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue