18 lines
388 B
CMake
18 lines
388 B
CMake
|
|
cmake_minimum_required(VERSION 3.22)
|
|
project(utilitiec C)
|
|
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
|
|
# Activate warnings
|
|
if (CMAKE_COMPILER_IS_GNUCC)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic")
|
|
endif()
|
|
if (MSVC)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4")
|
|
endif()
|
|
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
add_subdirectory(src/)
|
|
add_subdirectory(tests/)
|