CMakeLists.txt 346 Bytes
Newer Older
1
cmake_minimum_required(VERSION 3.16)
TheNumbat's avatar
TheNumbat committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

project(glad LANGUAGES CXX)

set(SOURCES_GLAD "glad.cpp"
                 "glad.h"
                 "khrplatform.h")

add_library(glad STATIC ${SOURCES_GLAD})

if(MSVC)
    set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Z7")
endif()

if(LINUX)
    target_link_libraries(glad ${CMAKE_DL_LIBS})
endif()