PROJECT(libcommon_utest) INCLUDE_DIRECTORIES(. ${CMAKE_SOURCE_DIR}/srcs/include ${CMAKE_SOURCE_DIR}/srcs/libs/include) AUX_SOURCE_DIRECTORY(misc UTEST_SRC) #AUX_SOURCE_DIRECTORY(crypto UTEST_SRC) #AUX_SOURCE_DIRECTORY(hardware UTEST_SRC) #AUX_SOURCE_DIRECTORY(uthash UTEST_SRC) #AUX_SOURCE_DIRECTORY(s2j 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})