Link unit tests with emu

This commit is contained in:
Rodrigo Arias 2023-01-17 19:25:02 +01:00 committed by Rodrigo Arias Mallo
parent a4f235dd97
commit 1024ce8ecd

View File

@ -31,11 +31,12 @@ function(unit_test source)
include_directories( include_directories(
"${CMAKE_SOURCE_DIR}/src/include" "${CMAKE_SOURCE_DIR}/src/include"
"${CMAKE_SOURCE_DIR}/src/emu"
"${CMAKE_SOURCE_DIR}/src" "${CMAKE_SOURCE_DIR}/src"
"${CMAKE_SOURCE_DIR}/include" "${CMAKE_SOURCE_DIR}/include"
) )
add_executable("${OVNI_TEST_NAME}" "${OVNI_TEST_SOURCE}") add_executable("${OVNI_TEST_NAME}" "${OVNI_TEST_SOURCE}")
target_link_libraries("${OVNI_TEST_NAME}" PRIVATE ovni chan) target_link_libraries("${OVNI_TEST_NAME}" PRIVATE ovni emu)
add_test(NAME "${OVNI_TEST_NAME}" add_test(NAME "${OVNI_TEST_NAME}"
COMMAND "${OVNI_TEST_NAME}" COMMAND "${OVNI_TEST_NAME}"