mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-25 08:36:14 +00:00
91e6b23d3f
NMAKE-VS2012 Error LNK2011 while NMAKE-VS2010 does not complain we need to link the pch.obj file see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx ** PCH Support for Ninja Ninja need to add property OBJECT_DEPENDS for using PCH OBJECT_OUTPUTS for create PCH see http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
50 lines
1.1 KiB
CMake
50 lines
1.1 KiB
CMake
# - Locate FMOD library
|
|
# This module defines
|
|
# FMOD_LIBRARY, the library to link against
|
|
# FMOD_FOUND, if false, do not try to link to FMOD
|
|
# FMOD_INCLUDE_DIR, where to find headers.
|
|
|
|
IF(FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
|
|
# in cache already
|
|
SET(FMOD_FIND_QUIETLY TRUE)
|
|
ENDIF(FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
|
|
|
|
|
|
FIND_PATH(FMOD_INCLUDE_DIR
|
|
fmod.h
|
|
PATHS
|
|
$ENV{FMOD_DIR}/include
|
|
/usr/local/include
|
|
/usr/include
|
|
/sw/include
|
|
/opt/local/include
|
|
/opt/csw/include
|
|
/opt/include
|
|
PATH_SUFFIXES fmod fmod3
|
|
)
|
|
|
|
FIND_LIBRARY(FMOD_LIBRARY
|
|
NAMES fmod fmodvc libfmod fmod64
|
|
PATHS
|
|
$ENV{FMOD_DIR}/lib
|
|
/usr/local/lib
|
|
/usr/lib
|
|
/usr/local/X11R6/lib
|
|
/usr/X11R6/lib
|
|
/sw/lib
|
|
/opt/local/lib
|
|
/opt/csw/lib
|
|
/opt/lib
|
|
/usr/freeware/lib64
|
|
)
|
|
|
|
IF(FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
|
|
SET(FMOD_FOUND "YES")
|
|
IF(NOT FMOD_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found FMOD: ${FMOD_LIBRARY}")
|
|
ENDIF(NOT FMOD_FIND_QUIETLY)
|
|
ELSE(FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
|
|
IF(NOT FMOD_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Warning: Unable to find FMOD!")
|
|
ENDIF(NOT FMOD_FIND_QUIETLY)
|
|
ENDIF(FMOD_LIBRARY AND FMOD_INCLUDE_DIR)
|