c-project/libs/gl2d/CMakeLists.txt

9 lines
388 B
CMake

cmake_minimum_required(VERSION 3.1)
project(gl2d)
add_library(gl2d)
target_sources(gl2d PRIVATE "src/gl2d.cpp")
target_include_directories(gl2d PUBLIC include "${CMAKE_SOURCE_DIR}/thirdparty/glm")
#target_include_directories(gl2d PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
#target_include_directories(gl2d PUBLIC include)
target_link_libraries(gl2d PUBLIC glad stb_image stb_truetype)