File: platform-win32.cmake

package info (click to toggle)
freespace2 24.0.2%2Brepack-1
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid, trixie
  • size: 43,188 kB
  • sloc: cpp: 583,107; ansic: 21,729; python: 1,174; sh: 464; makefile: 248; xml: 181
file content (28 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

MESSAGE(STATUS "Configuring Windows specific things and stuff...")

SET(WIN32_LIBS
	comctl32
	msacm32
	odbc32
	odbccp32
	vfw32
	winmm
	ws2_32
	psapi
	shlwapi
)

IF (MINGW)
	SET(WIN32_LIBS ${WIN32_LIBS} mingw32)
ENDIF (MINGW)

target_link_libraries(platform INTERFACE ${WIN32_LIBS})

target_compile_definitions(platform INTERFACE WIN32 USE_OPENAL _WINDOWS)

# Specify minimum Windows version for the headers (currently this is Vista)
target_compile_definitions(platform INTERFACE NTDDI_VERSION=0x06000000 _WIN32_WINNT=0x0600)

SET(EXE_GUI_TYPE WIN32)
set(PLATFORM_WINDOWS TRUE CACHE INTERNAL "" FORCE)