|
cmake_minimum_required(VERSION 3.2)
|
|
|
|
project(gux-lib LANGUAGES C)
|
|
|
|
add_library(gux-lib OBJECT
|
|
src/commons.h
|
|
src/vec.h
|
|
src/vec.c
|
|
)
|
|
|
|
target_include_directories(gux-lib
|
|
PUBLIC src
|
|
)
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|
|
|
target_compile_options(gux-lib
|
|
PUBLIC -Wall -Wextra -g
|
|
)
|
|
|
|
endif()
|