testing init

This commit is contained in:
2026-06-10 16:38:51 +03:00
parent 3079fd5f59
commit 4eca54e1c7
6 changed files with 31 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "external/Unity"]
path = external/Unity
url = https://github.com/ThrowTheSwitch/Unity.git
+9
View File
@@ -6,6 +6,8 @@ project(ZBBSServer
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(TARGET_GROUP production CACHE STRING "Group to build")
# Uncomment if you need to use PostgresQL # Uncomment if you need to use PostgresQL
option(USE_POSTGRESQL "Use PostgreSQL instead of SQLite" OFF) option(USE_POSTGRESQL "Use PostgreSQL instead of SQLite" OFF)
@@ -38,6 +40,13 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory(src) add_subdirectory(src)
if(TARGET_GROUP STREQUAL test)
include(CTest)
add_subdirectory(external)
add_subdirectory(test)
endif()
install( install(
TARGETS zbbs-server TARGETS zbbs-server
) )
+7
View File
@@ -0,0 +1,7 @@
add_library(Unity STATIC
Unity/src/unity.c
)
target_include_directories(Unity PUBLIC
Unity/src
)
+1
View File
@@ -0,0 +1 @@
add_subdirectory(file_p)
+10
View File
@@ -0,0 +1,10 @@
add_executable(file_p_app
file_p.c
)
target_link_libraries(file_p_app
file_p
Unity
)
add_test(file_p_test file_p_app)
+1
View File
@@ -0,0 +1 @@
#include <unity.h>