lol/CMakeLists.txt

32 lines
845 B
CMake
Raw Normal View History

2021-12-22 23:25:50 +00:00
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"
2021-12-22 23:45:24 +00:00
"vendor/glad/src/glad.c"
2021-12-24 13:20:53 +00:00
"include/lol/Texture.hpp" "src/Texture.cpp" "include/lol/util/Enums.hpp" "include/lol/Buffer.hpp" "src/Buffer.cpp" "include/lol/buffers/VertexBuffer.hpp" "src/buffers/VertexBuffer.cpp" "include/lol/buffers/ElementBuffer.hpp" "src/buffers/ElementBuffer.cpp")
2021-12-22 23:25:50 +00:00
target_include_directories(lol PUBLIC
${GLM_INCLUDE_DIRS}
vendor/glad/include
include
)
target_link_libraries(lol PUBLIC
${GLM_LIBRARIES}
)