mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-15 03:59:06 +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
91 lines
2.1 KiB
CMake
91 lines
2.1 KiB
CMake
# Look for a directory containing STLport.
|
|
#
|
|
# The following values are defined
|
|
# STLPORT_INCLUDE_DIR - where to find vector, etc.
|
|
# STLPORT_LIBRARIES - link against these to use STLport
|
|
# STLPORT_FOUND - True if the STLport is available.
|
|
|
|
# also defined, but not for general use are
|
|
IF(STLPORT_LIBRARIES AND STLPORT_INCLUDE_DIR)
|
|
# in cache already
|
|
SET(STLPORT_FIND_QUIETLY TRUE)
|
|
ENDIF(STLPORT_LIBRARIES AND STLPORT_INCLUDE_DIR)
|
|
|
|
FIND_PATH(STLPORT_INCLUDE_DIR
|
|
iostream
|
|
PATHS
|
|
/usr/local/include
|
|
/usr/include
|
|
/sw/include
|
|
/opt/local/include
|
|
/opt/csw/include
|
|
/opt/include
|
|
PATH_SUFFIXES stlport
|
|
)
|
|
|
|
FIND_LIBRARY(STLPORT_LIBRARY_DEBUG
|
|
NAMES
|
|
stlport_cygwin_debug
|
|
stlport_cygwin_stldebug
|
|
stlport_gcc_debug
|
|
stlport_gcc_stldebug
|
|
stlportstld_x
|
|
stlportstld_x.5.2
|
|
stlportd
|
|
stlportd_statix
|
|
stlportd_static
|
|
PATHS
|
|
/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
|
|
)
|
|
|
|
FIND_LIBRARY(STLPORT_LIBRARY_RELEASE
|
|
NAMES
|
|
stlport_cygwin
|
|
stlport_gcc
|
|
stlport
|
|
stlport_x
|
|
stlport_x.5.2
|
|
stlport_statix
|
|
stlport_static
|
|
PATHS
|
|
/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(STLPORT_INCLUDE_DIR)
|
|
IF(STLPORT_LIBRARY_RELEASE)
|
|
SET(STLPORT_FOUND TRUE)
|
|
|
|
SET(STLPORT_LIBRARIES ${STLPORT_LIBRARY_RELEASE})
|
|
IF(STLPORT_LIBRARY_DEBUG)
|
|
SET(STLPORT_LIBRARIES optimized ${STLPORT_LIBRARIES} debug ${STLPORT_LIBRARY_DEBUG})
|
|
ENDIF(STLPORT_LIBRARY_DEBUG)
|
|
ENDIF(STLPORT_LIBRARY_RELEASE)
|
|
ENDIF(STLPORT_INCLUDE_DIR)
|
|
|
|
IF(STLPORT_FOUND)
|
|
IF(NOT STLPORT_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found STLport: ${STLPORT_LIBRARIES}")
|
|
ENDIF(NOT STLPORT_FIND_QUIETLY)
|
|
ELSE(STLPORT_FOUND)
|
|
IF(NOT STLPORT_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Warning: Unable to find STLport!")
|
|
ENDIF(NOT STLPORT_FIND_QUIETLY)
|
|
ENDIF(STLPORT_FOUND)
|
|
|
|
MARK_AS_ADVANCED(STLPORT_LIBRARY_RELEASE STLPORT_LIBRARY_DEBUG)
|