Skip to content
Snippets Groups Projects
Commit 589dd829 authored by Pascal Palenda's avatar Pascal Palenda
Browse files

Add option to add tests with the library with no internal testing

parent d0710179
Branches
No related tags found
No related merge requests found
......@@ -129,6 +129,17 @@ macro (ihta_add_library)
# Organize sources in folders
GroupSourcesByFolder (${IHTA_ADD_LIB_TARGET})
if (IHTA_ADD_LIB_TEST_SOURCES)
if (IHTA_ADD_LIB_TEST_INPLACE OR IHTA_ADD_LIB_TEST_INTERNALS)
message(FATAL_ERROR TODO)
else ()
ihta_add_test (
TEST_TARGET ${IHTA_ADD_LIB_TARGET} IDE_FOLDER ${IHTA_ADD_LIB_IDE_FOLDER} SOURCES
${IHTA_ADD_LIB_TEST_SOURCES}
)
endif ()
endif ()
if (IHTA_ADD_LIB_OUT_VAR)
set (${IHTA_ADD_LIB_OUT_VAR} ${IHTA_ADD_LIB_TARGET})
endif ()
......
......@@ -23,5 +23,5 @@ include (${CPM_MODULE_LOCATION})
include (${CMAKE_CURRENT_LIST_DIR}/GetCommonLibraries.cmake)
include (${CMAKE_CURRENT_LIST_DIR}/BuildDoc.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/IhtaAddLibrary.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/IhtaAddTest.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/IhtaAddLibrary.cmake)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment