Fix missing include directories while compiling tests
This commit is contained in:
parent
92d788a7f8
commit
bdd44757ec
@ -45,6 +45,7 @@ endif()
|
|||||||
if (BUILD_TESTS STREQUAL "ON")
|
if (BUILD_TESTS STREQUAL "ON")
|
||||||
add_library(${PROJECT_NAME}_test OBJECT)
|
add_library(${PROJECT_NAME}_test OBJECT)
|
||||||
target_sources(${PROJECT_NAME}_test PRIVATE "${mtl_sources_test}")
|
target_sources(${PROJECT_NAME}_test PRIVATE "${mtl_sources_test}")
|
||||||
|
target_include_directories(${PROJECT_NAME}_test PUBLIC "${mtl_include_common}")
|
||||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${PROJECT_NAME}_test)
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${PROJECT_NAME}_test)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user