mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Define NOMINMAX and multi-processor compilation for wxtest
This commit is contained in:
parent
9481bc6e61
commit
40a13e8aa4
1 changed files with 8 additions and 0 deletions
|
|
@ -83,6 +83,14 @@ endif()
|
|||
|
||||
target_compile_definitions(wxtest PRIVATE SCWX_TEST_DATA_DIR="${SCWX_DIR}/test/data")
|
||||
|
||||
if (MSVC)
|
||||
# Don't include Windows macros
|
||||
target_compile_options(wxtest PRIVATE -DNOMINMAX)
|
||||
|
||||
# Enable multi-processor compilation
|
||||
target_compile_options(wxtest PRIVATE "/MP")
|
||||
endif()
|
||||
|
||||
gtest_discover_tests(wxtest)
|
||||
|
||||
target_link_libraries(wxtest GTest::gtest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue