testing init
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[submodule "external/Unity"]
|
||||
path = external/Unity
|
||||
url = https://github.com/ThrowTheSwitch/Unity.git
|
||||
@@ -6,6 +6,8 @@ project(ZBBSServer
|
||||
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
set(TARGET_GROUP production CACHE STRING "Group to build")
|
||||
|
||||
# Uncomment if you need to use PostgresQL
|
||||
option(USE_POSTGRESQL "Use PostgreSQL instead of SQLite" OFF)
|
||||
|
||||
@@ -38,6 +40,13 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
if(TARGET_GROUP STREQUAL test)
|
||||
include(CTest)
|
||||
|
||||
add_subdirectory(external)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS zbbs-server
|
||||
)
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
add_library(Unity STATIC
|
||||
Unity/src/unity.c
|
||||
)
|
||||
|
||||
target_include_directories(Unity PUBLIC
|
||||
Unity/src
|
||||
)
|
||||
@@ -0,0 +1 @@
|
||||
add_subdirectory(file_p)
|
||||
@@ -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)
|
||||
@@ -0,0 +1 @@
|
||||
#include <unity.h>
|
||||
Reference in New Issue
Block a user