
Today I learned that CMake will error if the project shares a dependency with a nested CMake file (which could be from an entirely-separate project that you have no control over). I'm starting to really hate CMake.
11 lines
201 B
CMake
11 lines
201 B
CMake
cmake_minimum_required(VERSION 3.12)
|
|
|
|
project(glad LANGUAGES C)
|
|
|
|
add_library(glad
|
|
"include/glad/glad.h"
|
|
"include/KHR/khrplatform.h"
|
|
"src/glad.c"
|
|
)
|
|
|
|
target_include_directories(glad PUBLIC "include")
|