Initial commit
This commit is contained in:
23
CMakeLists.txt
Normal file
23
CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
project(
|
||||
ht
|
||||
VERSION 1.0
|
||||
LANGUAGES C)
|
||||
|
||||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||
include(CTest)
|
||||
endif()
|
||||
|
||||
# add_compile_options(-fsanitize=address,leak,undefined)
|
||||
# add_link_options(-fsanitize=address,leak,undefined)
|
||||
|
||||
add_library(ht src/ht.c)
|
||||
target_include_directories(ht PUBLIC include/)
|
||||
target_compile_options(ht PRIVATE -Wall -Wpedantic)
|
||||
|
||||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING)
|
||||
add_subdirectory(test/)
|
||||
endif()
|
Reference in New Issue
Block a user