18 lines
338 B
CMake
18 lines
338 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(cieter C)
|
|
|
|
set(CMAKE_C_STANDARD 17)
|
|
|
|
find_package(LibArchive REQUIRED)
|
|
|
|
include_directories(include)
|
|
|
|
file(GLOB SRCS src/*.c)
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL Release)
|
|
add_compile_options(-O3 -flto)
|
|
endif()
|
|
|
|
add_executable(cieter ${SRCS})
|
|
target_link_libraries(cieter LibArchive::LibArchive)
|