3 #################################
4 ## On windows: we need winsock
7 find_library(WINSOCK_LIB WSock32 PATHS
8 $ENV{PLATFORMSDK_DIR}Lib/AMD64 "$ENV{PROGRAMFILES}/Microsoft Platform SDK/Lib/AMD64"
9 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/VC/PlatformSDK/Lib/AMD64"
10 DOC "Path to WSock32.lib")
12 find_library(WINSOCK_LIB WSock32 PATHS
13 $ENV{PLATFORMSDK_DIR}Lib "$ENV{PROGRAMFILES}/Microsoft Platform SDK/Lib"
14 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/VC/PlatformSDK/Lib"
15 "$ENV{PROGRAMFILES}/Microsoft Platform SDK for Windows Server 2003 R2/Lib"
16 DOC "Path to WSock32.lib")
21 mark_as_advanced(WINSOCK_LIB)
24 ##################################
25 ## SSE and floating point compilation options
26 # msvc 2005 doesn't define __SSE__ or __SSE2__, so we define them for it
27 # this of course assumes that the machine is capable of SSE2.... which almost any windows machine will be these days
30 add_definitions(-D__SSE__ -D__SSE2__)