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.
15 lines
370 B
CMake
15 lines
370 B
CMake
add_library(mio_full_winapi INTERFACE)
|
|
target_link_libraries(mio_full_winapi
|
|
INTERFACE mio_base
|
|
)
|
|
add_library(mio::mio_full_winapi ALIAS mio_full_winapi)
|
|
|
|
add_library(mio INTERFACE)
|
|
target_link_libraries(mio
|
|
INTERFACE mio_full_winapi
|
|
)
|
|
target_compile_definitions(mio
|
|
INTERFACE WIN32_LEAN_AND_MEAN NOMINMAX
|
|
)
|
|
install(TARGETS mio_full_winapi EXPORT mioConfig)
|