updated build system
This commit is contained in:
parent
6dd4a420f8
commit
26973f335c
@ -56,6 +56,13 @@ function(ADD_UVW_TEST TEST_NAME TEST_SOURCE)
|
||||
${WINSOCK2}
|
||||
)
|
||||
|
||||
target_compile_options(
|
||||
${TEST_NAME}
|
||||
PRIVATE
|
||||
$<$<NOT:$<PLATFORM_ID:Windows>>:-Wall>
|
||||
$<$<PLATFORM_ID:Windows>:/EHsc>
|
||||
)
|
||||
|
||||
target_compile_definitions(${TEST_NAME} PRIVATE $<$<NOT:$<TARGET_EXISTS:uvw::uvw>>:UVW_AS_LIB>)
|
||||
add_test(NAME uvw_${TEST_NAME} COMMAND $<TARGET_FILE:${TEST_NAME}>)
|
||||
endfunction()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user