Some checks failed
My Build All / build_windows (push) Has been cancelled
My Build All / build_linux_portable (push) Has been cancelled
My Build All / build_linux_appimage (push) Has been cancelled
My Build All / build_macos (push) Has been cancelled
My Build All / Publish release assets (push) Has been cancelled
Shellcheck / Shellcheck (push) Has been cancelled
18 lines
391 B
CMake
18 lines
391 B
CMake
cmake_minimum_required(VERSION 3.13)
|
|
|
|
project(miniz)
|
|
|
|
add_library(miniz INTERFACE)
|
|
|
|
add_library(miniz_static STATIC
|
|
miniz.c
|
|
miniz.h
|
|
)
|
|
|
|
if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
|
|
target_compile_definitions(miniz_static PRIVATE _GNU_SOURCE)
|
|
endif()
|
|
|
|
target_link_libraries(miniz INTERFACE miniz_static)
|
|
target_include_directories(miniz SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|