initial commit
This commit is contained in:
commit
739d8f55b7
20 changed files with 6472 additions and 0 deletions
35
CMakeLists.txt
Normal file
35
CMakeLists.txt
Normal file
|
@ -0,0 +1,35 @@
|
|||
cmake_minimum_required (VERSION 3.8)
|
||||
|
||||
project("lol")
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
find_package(GLM)
|
||||
if(NOT GLM_FOUND)
|
||||
message(STATUS "Could not find GLM on system, including from source instead")
|
||||
add_subdirectory("vendor/glm")
|
||||
|
||||
set(GLM_INCLUDE_DIRS glm)
|
||||
set(GLM_LIBRARIES glm)
|
||||
endif()
|
||||
|
||||
add_library(lol STATIC
|
||||
"src/Drawable.cpp"
|
||||
"src/Transformable.cpp"
|
||||
"src/Shader.cpp"
|
||||
"src/VertexArrayObject.cpp"
|
||||
)
|
||||
|
||||
target_sources(lol PUBLIC
|
||||
vendor/glad/src/glad.c
|
||||
)
|
||||
|
||||
target_include_directories(lol PUBLIC
|
||||
${GLM_INCLUDE_DIRS}
|
||||
vendor/glad/include
|
||||
include
|
||||
)
|
||||
|
||||
target_link_libraries(lol PUBLIC
|
||||
${GLM_LIBRARIES}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue