dependencies

This commit is contained in:
Christoph J. Scherr 2023-10-12 22:36:55 +02:00
commit d63a793fd8
6 changed files with 34 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
CMakeFiles
CMakeCache.txt
build/Release
build
CMakeUserPresets.json

7
CMakeLists.txt Normal file
View 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
View 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
View file

@ -0,0 +1,4 @@
#!/bin/bash
set -e
conan install . --output-folder=build --build=missing
bash build.sh

6
conanfile.txt Normal file
View file

@ -0,0 +1,6 @@
[requires]
glfw/3.3.8
[generators]
CMakeDeps
CMakeToolchain

6
src/main.cpp Normal file
View file

@ -0,0 +1,6 @@
#include <iostream>
#include <GLFW/glfw3.h>
int main() {
std::cout << "hello world";
}