Skip to content
Snippets Groups Projects
Unverified Commit 07deea23 authored by Joris Vaillant's avatar Joris Vaillant
Browse files

cmake: Fix test name

parent 20226319
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,17 @@ function(ADD_LIB_UNIT_TEST test)
if(BUILD_TESTING)
add_library(${test_target} SHARED "${test}.cpp")
else(BUILD_TESTING)
else()
add_library(${test_target} SHARED EXCLUDE_FROM_ALL "${test}.cpp")
endif(BUILD_TESTING)
endif()
set_standard_output_directory(${test_target})
target_link_libraries(${test_target} PUBLIC ${PROJECT_NAME})
set_target_properties(${test_target} PROPERTIES PREFIX "")
set_target_properties(
${test_target}
PROPERTIES PREFIX ""
LIBRARY_OUTPUT_NAME ${test}
RUNTIME_OUTPUT_NAME ${test})
set_target_properties(${test_target} PROPERTIES SUFFIX ${PYTHON_EXT_SUFFIX})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment