2024-03-15 16:19:01 +00:00
|
|
|
if (NOT MINGW)
|
|
|
|
return()
|
2024-03-13 18:13:55 +00:00
|
|
|
endif()
|
|
|
|
|
2024-03-15 16:19:01 +00:00
|
|
|
# this has to run after the toolchain is initialized.
|
2024-10-04 20:05:52 +00:00
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/win32-deps/mingw-include")
|
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/win32-deps/mingw-xaudio/include")
|
2024-03-13 18:13:55 +00:00
|
|
|
|
2024-03-30 20:14:32 +00:00
|
|
|
# Add Winsock as the last library linked because of broken link precedence.
|
|
|
|
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -lws2_32")
|