updated with new section for unit testing stuff

This commit is contained in:
jakeg00dwin 2024-03-06 21:46:41 -08:00
parent 1b0b142c26
commit df655e13b0
1 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.20) cmake_minimum_required(VERSION 3.20)
# Use the fancy version substitution # Use the fancy version substitution
project(cmake-cmocka-template project(cmake-cpputest-template
VERSION 1.0 VERSION 1.0
DESCRIPTION "template for cmake + cpputest" DESCRIPTION "template for cmake + cpputest"
LANGUAGES C CXX LANGUAGES C CXX
@ -32,9 +32,20 @@ else()
add_definitions(-DUNIX) add_definitions(-DUNIX)
endif() endif()
add_subdirectory(src) # #######################################
# TESTING STUFF
# #######################################
# find_library()
if (UNIT_TESTING)
message(STATUS "CPPUTEST_LIB: ${CPPUTEST_LIB}")
add_subdirectory(tests)
endif()
# ####################################### # #######################################
# PROJECT SPECIFIC # PROJECT SPECIFIC
# ####################################### # #######################################
add_subdirectory(src)