mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-20 03:36:37 +02:00
update all cmake files to version 3.9
other misc cmake fixes version 3.9 allows for ipo (lto)
This commit is contained in:
@ -1,10 +1,33 @@
|
||||
cmake_minimum_required(VERSION 3.2)
|
||||
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
||||
|
||||
project(opengl_primitives CXX)
|
||||
|
||||
file(GLOB_RECURSE CPP_FILES src/*.cpp)
|
||||
file(GLOB_RECURSE HPP_FILES src/*.hpp)
|
||||
|
||||
add_library(opengl_primitives ${CPP_FILES} ${HPP_FILES})
|
||||
add_library(opengl_primitives
|
||||
src/mm/opengl/buffer.hpp
|
||||
src/mm/opengl/buffer.cpp
|
||||
src/mm/opengl/fbo_builder.hpp
|
||||
src/mm/opengl/fbo_builder.cpp
|
||||
src/mm/opengl/frame_buffer_object.hpp
|
||||
src/mm/opengl/frame_buffer_object.cpp
|
||||
src/mm/opengl/instance_buffer.hpp
|
||||
src/mm/opengl/shader.hpp
|
||||
src/mm/opengl/shader.cpp
|
||||
src/mm/opengl/shader_builder.hpp
|
||||
src/mm/opengl/shader_builder.cpp
|
||||
src/mm/opengl/spritesheet.hpp
|
||||
src/mm/opengl/texture.hpp
|
||||
src/mm/opengl/texture.cpp
|
||||
src/mm/opengl/texture_loader.hpp
|
||||
src/mm/opengl/texture_loader.cpp
|
||||
src/mm/opengl/vertex_array_object.hpp
|
||||
src/mm/opengl/vertex_array_object.cpp
|
||||
|
||||
|
||||
src/mm/opengl/components/texture.hpp
|
||||
)
|
||||
|
||||
target_include_directories(opengl_primitives PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||||
|
||||
|
Reference in New Issue
Block a user