23 lines
518 B
CMake
23 lines
518 B
CMake
cmake_minimum_required(VERSION 4.2.1)
|
|
set(CMAKE_C_STANDARD 23)
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
include_directories(include)
|
|
project(libgl LANGUAGES C)
|
|
|
|
set(SOURCES
|
|
src/main.c
|
|
)
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(PROCESSOR
|
|
GIT_REPOSITORY https://git.moomancer.xyz/DarthMooMancer/libimg.git
|
|
GIT_TAG main
|
|
GIT_SHALLOW TRUE
|
|
)
|
|
FetchContent_MakeAvailable(PROCESSOR)
|
|
|
|
add_executable(libgl ${SOURCES})
|
|
target_link_libraries(libgl PRIVATE PROCESSOR)
|
|
|