mirror of
https://github.com/Tilo-K/tstd.git
synced 2026-01-10 06:51:01 +00:00
wip
This commit is contained in:
@@ -4,12 +4,18 @@ project(tstd C)
|
||||
set(CMAKE_C_STANDARD 23)
|
||||
|
||||
add_library(tstd STATIC library.c
|
||||
string.h
|
||||
include/string.h
|
||||
string.c)
|
||||
|
||||
|
||||
add_executable(test_tstd test/test_main.c)
|
||||
target_link_libraries(test_tstd tstd)
|
||||
|
||||
target_include_directories(tstd
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
enable_testing()
|
||||
add_test(NAME tstd_tests COMMAND test_tstd)
|
||||
Reference in New Issue
Block a user