mirror of
https://github.com/fallout2-ce/fpattern.git
synced 2026-07-27 16:47:36 -07:00
20 lines
388 B
CMake
20 lines
388 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(fpattern
|
|
LANGUAGES C
|
|
VERSION "1.0.0"
|
|
)
|
|
|
|
add_library(fpattern-static src/fpattern.c)
|
|
add_library(fpattern::fpattern ALIAS fpattern-static)
|
|
|
|
if(NOT WIN32)
|
|
target_compile_definitions(fpattern-static PRIVATE
|
|
"-Dunix"
|
|
)
|
|
endif()
|
|
|
|
target_include_directories(fpattern-static PUBLIC
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/include"
|
|
)
|