diff options
| author | Mikhail Romanko <me@blankhex.com> | 2024-04-13 14:52:29 +0300 |
|---|---|---|
| committer | Mikhail Romanko <me@blankhex.com> | 2024-04-13 14:52:29 +0300 |
| commit | ac5df0ebe9a6ac67b9be4cc319f5cd0625b50178 (patch) | |
| tree | 5532f9fd219691476fb3be127f228f3a07325e4b /unit/CMakeLists.txt | |
| download | bhlib-old-ac5df0ebe9a6ac67b9be4cc319f5cd0625b50178.tar.gz | |
Initial commit
Diffstat (limited to 'unit/CMakeLists.txt')
| -rw-r--r-- | unit/CMakeLists.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/unit/CMakeLists.txt b/unit/CMakeLists.txt new file mode 100644 index 0000000..f1eef3e --- /dev/null +++ b/unit/CMakeLists.txt @@ -0,0 +1,22 @@ +cmake_minimum_required(VERSION 3.10) + +# Project and C standard configuration +project(bhunit LANGUAGES C) +set(CMAKE_C_STANDARD 90) +set(CMAKE_C_STANDARD_REQUIRED ON) + +# Disable extensions +set(CMAKE_C_EXTENSIONS OFF) + +# Library code +set(BHUNIT_SOURCE + src/unit.c +) + +set(BHUNIT_HEADER + include/bh/unit.h +) + +# Library +add_library(bhunit STATIC ${BHUNIT_SOURCE} ${BHUNIT_HEADER}) +target_include_directories(bhunit PUBLIC include) |
