Refactored project structure

- Test project is now separated from engine code
 - Engine code can now initialize OpenGL and GLUT correctly
 - Moved vectors and quaternions to a Math subdirectory

Fixed reorder warning
This commit is contained in:
trotFunky 2019-11-02 16:25:02 +01:00
parent 70f76d8030
commit 2bff38edcb
14 changed files with 155 additions and 101 deletions

19
example/CMakeLists.txt Normal file
View file

@ -0,0 +1,19 @@
add_executable(tests_opengl
main.cpp
displayers.h
displayers.cpp)
target_link_directories(tests_opengl PRIVATE
${PROJECT_SOURCE_DIR}/src)
target_include_directories(tests_opengl PRIVATE
${PROJECT_SOURCE_DIR}/src)
target_link_libraries(tests_opengl
${OPENGL_LIBRARIES}
${GLUT_LIBRARIES}
engine)
target_include_directories(tests_opengl PRIVATE
${OPENGL_INCLUDE_DIR}
${GLUT_INCLUDE_DIR})