Updated with cpputest vars
This commit is contained in:
parent
e34b4f47bd
commit
28454182d9
1 changed files with 9 additions and 9 deletions
|
|
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.20)
|
||||||
|
|
||||||
# Use the fancy version substitution
|
# Use the fancy version substitution
|
||||||
project(cmake-cpputest-template
|
project(cmake-cpputest-template
|
||||||
VERSION 1.0
|
VERSION 0.1.0
|
||||||
DESCRIPTION "template for cmake + cpputest"
|
DESCRIPTION "template for cmake + cpputest"
|
||||||
LANGUAGES C CXX
|
LANGUAGES C CXX
|
||||||
)
|
)
|
||||||
|
|
@ -52,15 +52,15 @@ if (UNIT_TESTING)
|
||||||
pkg_search_module(CPPUTEST REQUIRED cpputest>=3.8)
|
pkg_search_module(CPPUTEST REQUIRED cpputest>=3.8)
|
||||||
message(STATUS "Found CppUTest version ${CPPUTEST_VERSION}")
|
message(STATUS "Found CppUTest version ${CPPUTEST_VERSION}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Diagnostic Messages for Multi-Platform testing.
|
||||||
|
message(STATUS "CPPUTEST_LIBRARY_DIRS: ${CPPUTEST_LIBRARY_DIRS}")
|
||||||
|
message(STATUS "CPPUTEST_INCLUDE_DIRS: ${CPPUTEST_INCLUDE_DIRS}" )
|
||||||
|
message(STATUS "CPPUTEST_LIBRARIES: ${CPPUTEST_LIBRARIES}" )
|
||||||
|
|
||||||
|
include_directories(${CPPUTEST_INCLUDE_DIRS})
|
||||||
|
link_directories(${CPPUTEST_LIBRARY_DIRS})
|
||||||
|
|
||||||
include_directories(
|
|
||||||
${CPPUTEST_INCLUDE_DIRS}
|
|
||||||
./inc
|
|
||||||
./mocks
|
|
||||||
)
|
|
||||||
link_directories(${CPPUTEST_LIBRARIES})
|
|
||||||
|
|
||||||
add_subdirectory(mocks)
|
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue