mirror of
https://github.com/vimpunk/mio.git
synced 2025-12-06 08:46:51 +08:00
The extra target doesn't `#define` any of `WIN32_LEAN_AND_MEAN`, `NOMINMAX`. The default `mio::mio` adds both of these. This commit also removes these defines from the `.*pp` files; they're now inserted by the compile commands.
16 lines
559 B
CMake
16 lines
559 B
CMake
add_executable(mio.test test.cpp)
|
|
target_link_libraries(mio.test PRIVATE mio::mio)
|
|
add_test(NAME mio.test COMMAND mio.test)
|
|
|
|
if(WIN32)
|
|
add_executable(mio.unicode.test test.cpp)
|
|
target_link_libraries(mio.unicode.test PRIVATE mio::mio)
|
|
target_compile_definitions(mio.unicode.test PRIVATE UNICODE)
|
|
add_test(NAME mio.unicode.test COMMAND mio.test)
|
|
|
|
add_executable(mio.fullwinapi.test test.cpp)
|
|
target_link_libraries(mio.fullwinapi.test
|
|
PRIVATE mio::mio_full_winapi)
|
|
add_test(NAME mio.fullwinapi.test COMMAND mio.test)
|
|
endif()
|