Start of example program

This commit is contained in:
Ben Visness
2018-05-27 15:08:07 -05:00
parent f8b3a84cec
commit fdea881102
5 changed files with 79 additions and 0 deletions

20
example/Makefile Normal file
View File

@@ -0,0 +1,20 @@
BUILD_DIR=build
clean:
rm -rf $(BUILD_DIR)
glfw:
mkdir -p $(BUILD_DIR)/glfw
cd $(BUILD_DIR)/glfw \
&& cmake -DGLFW_BUILD_TESTS=off -DGLFW_BUILD_DOCS=off -DGLFW_BUILD_EXAMPLES=off ../../external/glfw \
&& make
example:
mkdir -p $(BUILD_DIR)/example
cd $(BUILD_DIR)/example \
&& $(CXX) $(CPPFLAGS) $(CXXFLAGS) -ohmmexample \
-I../../external/glfw/include \
-L../glfw/src \
-lglew -lglfw3 \
-framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo \
../../main.cpp