mio/cmake/WinApiLevels.cmake
Greg Beard acfca0042e Adds a mio::mio_full_winapi target, which defines no WinAPI flags
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.
2018-10-19 07:21:34 +01:00

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)