updated with new section for unit testing stuff
This commit is contained in:
parent
1b0b142c26
commit
df655e13b0
|
@ -1,7 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.20)
|
||||
|
||||
# Use the fancy version substitution
|
||||
project(cmake-cmocka-template
|
||||
project(cmake-cpputest-template
|
||||
VERSION 1.0
|
||||
DESCRIPTION "template for cmake + cpputest"
|
||||
LANGUAGES C CXX
|
||||
|
@ -32,9 +32,20 @@ else()
|
|||
add_definitions(-DUNIX)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
# #######################################
|
||||
# TESTING STUFF
|
||||
# #######################################
|
||||
|
||||
# find_library()
|
||||
|
||||
|
||||
if (UNIT_TESTING)
|
||||
message(STATUS "CPPUTEST_LIB: ${CPPUTEST_LIB}")
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
# #######################################
|
||||
# PROJECT SPECIFIC
|
||||
# #######################################
|
||||
|
||||
add_subdirectory(src)
|
||||
|
|
Loading…
Reference in New Issue