GithubHelp home page GithubHelp logo

tgalaj / openglsamplecmake Goto Github PK

View Code? Open in Web Editor NEW
82.0 2.0 17.0 7.57 MB

Sample CMake for OpenGL based projects.

Home Page: https://shot511.github.io

License: MIT License

CMake 0.33% C 29.50% Objective-C 0.44% C++ 69.70% GLSL 0.03%

openglsamplecmake's Introduction

OpenGLSampleCmake

A sample CMake for OpenGL based projects.

For more information about how all of these was done please refer to this link.

Building on Win32

Prerequisites

Install the following dependencies

Build instructions

  1. Make sure that CMake is installed and added to the system PATH variable.
  2. Open terminal in the CMakeLists.txt directory and run:
  mkdir build
  cd build
  cmake -A Win32 ..

Note: The project must be configured as Win32, due to precompiled x86 binaries of thirdparty libraries.


Building on Ubuntu

  • The following recipe was successfully tested on Ubuntu 20.04 platform.
  • So far, we haven't tested macOS, nor any other Unix flavors.
  • However, we anticipate most Linux distros should build similarly, aside from a few package-management tweaks.
  • So... if you're developing on those platforms, please feel free to contribute :-)

Prerequisites

  sudo apt update
  sudo apt install -y build-essential cmake mesa-common-dev mesa-utils freeglut3-dev

Build & run

  mkdir build
  cd build
  cmake ..
  make -j4
  ./OpenGLExample

Additional info

Any improvements to CMake script are greatly welcome.

Thanks for the contributions

  • GoannaDoIt (Andrew J Macdonald)

openglsamplecmake's People

Contributors

tgalaj avatar goannadoit avatar

Stargazers

Yuhang Qi avatar Baier avatar rzn avatar Achtung Katse avatar Sakitha Navod avatar Víctor A. Nieves avatar  avatar Jooh avatar Thilak avatar Kittycat avatar Sai avatar Anssi Rajala avatar Pulak Gautam avatar  avatar  avatar  avatar 乌尼 avatar  avatar  avatar Lavender Lee avatar  avatar Reven2 avatar  avatar Maxusify avatar  avatar  avatar  avatar Jeff Irwin avatar Hugo Nie avatar frankfanslc avatar JayLee avatar  avatar  avatar Atmanand Gauns avatar Ivan Postu avatar George Kusayko avatar NeutronicJohn avatar  avatar Marc Luqué avatar Egor avatar  avatar  avatar Mehmet Tezel avatar Marc avatar Chris avatar Michał Pełka avatar Vladimir Lekhterev avatar Mike Konkov avatar Bastian avatar peterlits zo avatar  avatar Okabe; avatar Hannah Bollar avatar Sai Kumar Peddireddy avatar Rienel avatar Ryan Puhalovich avatar natnat avatar Piotr Kanclerz avatar Konstantin Khomyakov avatar Phil avatar Vivek G avatar  avatar Shane Bishop avatar Ugnius Malūkas avatar Karol avatar Leo Wu avatar Doğukan Köse avatar qiumengda avatar  avatar Gabriel Porto avatar Matthew Thienel avatar flexw avatar Oganesyan Levon avatar  avatar  avatar Victor Qin avatar Daria Kolodzey avatar LiuQiang avatar Den Vorontsov avatar Andres Mariscal avatar the way avatar Geek OwLL avatar

Watchers

James Cloos avatar  avatar

openglsamplecmake's Issues

[comment] Thanks

Just used this to confirm opengl was working/running on something, just wanted to say thanks :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.