aboutsummaryrefslogtreecommitdiff
path: root/cmake/platform/win/settings.cmake
blob: dcec80a08c4163a0b618f120cf7fc98fa1fc4855 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
target_compile_definitions(trinity-compile-option-interface
  INTERFACE
    _WIN32_WINNT=0x0A00                     # Windows 10
    NTDDI_VERSION=0x0A000007                # 19H1 (1903)
    WIN32_LEAN_AND_MEAN
    NOMINMAX
    TRINITY_REQUIRED_WINDOWS_BUILD=18362)

# set up output paths for executable binaries (.exe-files, and .dll-files on DLL-capable platforms)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/$<CONFIG>")

# add WindowsSettings.manifest to all executables
target_sources(trinity-core-interface
  INTERFACE
    $<$<STREQUAL:$<TARGET_PROPERTY:TYPE>,EXECUTABLE>:${CMAKE_SOURCE_DIR}/cmake/platform/win/WindowsSettings.manifest>)