Backup
This commit is contained in:
1 parent
1249738f98
commit
d24c406f22
7 files changed
+260
-13
No files matched your search
+6
-5
@@ -3,20 +3,21 @@ set(CMAKE_C_STANDARD 23)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
include_directories(include)
|
||||
project(libgl LANGUAGES C)
|
||||
project(libgl LANGUAGES C OBJC)
|
||||
|
||||
set(SOURCES
|
||||
src/main.c
|
||||
src/window.m
|
||||
)
|
||||
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(PROCESSOR
|
||||
FetchContent_Declare(imgproc
|
||||
GIT_REPOSITORY https://git.moomancer.xyz/DarthMooMancer/libimg.git
|
||||
GIT_TAG main
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(PROCESSOR)
|
||||
FetchContent_MakeAvailable(imgproc)
|
||||
|
||||
add_executable(libgl ${SOURCES})
|
||||
target_link_libraries(libgl PRIVATE PROCESSOR)
|
||||
|
||||
target_link_libraries(libgl PRIVATE imgproc)
|
||||
target_link_libraries(libgl PRIVATE "$<LINK_LIBRARY:FRAMEWORK,AppKit>")
|
||||
Reference in new issue
Block a user