vcpe/unit_test/CMakeLists.txt

15 lines
392 B
CMake
Raw Permalink Normal View History

PROJECT(libcommon_utest)
INCLUDE_DIRECTORIES(. ${CMAKE_SOURCE_DIR}/srcs/include ${CMAKE_SOURCE_DIR}/srcs/libs/include)
AUX_SOURCE_DIRECTORY(misc UTEST_SRC)
ADD_DEFINITIONS(-DPROJECT_NAME="${PROJECT_NAME}")
ADD_EXECUTABLE(${PROJECT_NAME} ${UTEST_SRC})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} common ${COMMON_LIBS})
#INCLUDE(CTest)
#INCLUDE(doctest)
#doctest_discover_tests(${PROJECT_NAME})