Commit 9f21f404 authored by Jan Möbius's avatar Jan Möbius

dos2unix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10703 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 07f711f2
# - Find FTGL
# Find the native FTGL headers and libraries.
#
# FTGL_INCLUDE_DIR - where to find FTGL.h, etc.
# FTGL_LIBRARIES - List of libraries when using FTGL.
# FTGL_FOUND - True if FTGL found.
GET_FILENAME_COMPONENT(module_file_path ${CMAKE_CURRENT_LIST_FILE} PATH )
# Look for the header file.
FIND_PATH(FTGL_INCLUDE_DIR NAMES FTGL/ftgl.h
PATHS /usr/include
/usr/local/include
../../External/include
"C:\\libs\\ftgl\\ftgl"
${module_file_path}/../../../External/include)
#MARK_AS_ADVANCED(FTGL_INCLUDE_DIR)
if ( WIN32 )
# Look for the library.
FIND_LIBRARY(FTGL_LIBRARY_RELEASE NAMES ftgl ftgl_dynamic_MTD
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
"C:\\libs\\ftgl\\msvc\\Build"
${module_file_path}/../../../External/lib)
FIND_LIBRARY(FTGL_LIBRARY_DEBUG NAMES ftgl_d ftgld
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
"C:\\libs\\ftgl\\msvc\\Build"
${module_file_path}/../../../External/lib)
set( FTGL_LIBRARY optimized;${FTGL_LIBRARY_RELEASE};debug;${FTGL_LIBRARY_DEBUG} )
GET_FILENAME_COMPONENT( FTGL_LIBRARY_DIR_RELEASE ${FTGL_LIBRARY_RELEASE} PATH )
GET_FILENAME_COMPONENT( FTGL_LIBRARY_DIR_DEBUG ${FTGL_LIBRARY_DEBUG} PATH )
list(APPEND FTGL_LIBRARY_DIRS ${FTGL_LIBRARY_DIR_DEBUG} ${FTGL_LIBRARY_DIR_RELEASE} )
else(WIN32)
FIND_LIBRARY(FTGL_LIBRARY NAMES ftgl ftgl_dynamic_MTD
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
"C:\\libs\\ftgl\\msvc\\Build"
${module_file_path}/../../../External/lib)
endif(WIN32)
#MARK_AS_ADVANCED(FTGL_LIBRARY)
IF( WIN32 AND PREFER_STATIC_LIBRARIES )
SET( FTGL_STATIC_LIBRARY_NAME ftgl_static_MTD )
IF( MSVC80 )
SET( FTGL_STATIC_LIBRARY_NAME ftgl_static_MTD_vc8 )
ELSEIF( MSVC90 )
SET( FTGL_STATIC_LIBRARY_NAME ftgl_static_MTD_vc9 )
ENDIF( MSVC80 )
FIND_LIBRARY( FTGL_STATIC_LIBRARY NAMES ${FTGL_STATIC_LIBRARY_NAME}
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
${module_file_path}/../../../External/lib )
MARK_AS_ADVANCED(FTGL_STATIC_LIBRARY)
FIND_LIBRARY( FTGL_STATIC_DEBUG_LIBRARY NAMES ${FTGL_STATIC_LIBRARY_NAME}_d
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
${module_file_path}/../../../External/lib )
MARK_AS_ADVANCED(FTGL_STATIC_DEBUG_LIBRARY)
IF( FTGL_STATIC_LIBRARY OR FTGL_STATIC_DEBUG_LIBRARY )
SET( FTGL_STATIC_LIBRARIES_FOUND 1 )
ENDIF( FTGL_STATIC_LIBRARY OR FTGL_STATIC_DEBUG_LIBRARY )
ENDIF( WIN32 AND PREFER_STATIC_LIBRARIES )
IF( FTGL_LIBRARY OR FTGL_STATIC_LIBRARIES_FOUND )
SET( FTGL_LIBRARIES_FOUND 1 )
ENDIF( FTGL_LIBRARY OR FTGL_STATIC_LIBRARIES_FOUND )
# Copy the results to the output variables.
IF(FTGL_INCLUDE_DIR AND FTGL_LIBRARIES_FOUND)
SET(FTGL_FOUND 1)
IF( WIN32 AND PREFER_STATIC_LIBRARIES AND FTGL_STATIC_LIBRARIES_FOUND )
IF(FTGL_STATIC_LIBRARY)
SET(FTGL_LIBRARIES optimized ${FTGL_STATIC_LIBRARY} )
ELSE(FTGL_STATIC_LIBRARY)
SET(FTGL_LIBRARIES optimized ${FTGL_STATIC_LIBRARY_NAME} )
MESSAGE( STATUS, "FTGL static release libraries not found. Release build might not work." )
ENDIF(FTGL_STATIC_LIBRARY)
IF(FTGL_STATIC_DEBUG_LIBRARY)
SET(FTGL_LIBRARIES ${FTGL_LIBRARIES} debug ${FTGL_STATIC_DEBUG_LIBRARY} )
ELSE(FTGL_STATIC_DEBUG_LIBRARY)
SET(FTGL_LIBRARIES ${FTGL_LIBRARIES} debug ${FTGL_STATIC_LIBRARY_NAME}_d )
MESSAGE( STATUS, "FTGL static debug libraries not found. Debug build might not work." )
ENDIF(FTGL_STATIC_DEBUG_LIBRARY)
SET( FTGL_LIBRARY_STATIC 1 )
ELSE( WIN32 AND PREFER_STATIC_LIBRARIES AND FTGL_STATIC_LIBRARIES_FOUND )
SET(FTGL_LIBRARIES ${FTGL_LIBRARY})
ENDIF( WIN32 AND PREFER_STATIC_LIBRARIES AND FTGL_STATIC_LIBRARIES_FOUND )
SET(FTGL_INCLUDE_DIR ${FTGL_INCLUDE_DIR})
ELSE(FTGL_INCLUDE_DIR AND FTGL_LIBRARIES_FOUND)
SET(FTGL_FOUND 0)
SET(FTGL_LIBRARIES)
SET(FTGL_INCLUDE_DIR)
ENDIF(FTGL_INCLUDE_DIR AND FTGL_LIBRARIES_FOUND)
# Report the results.
IF(NOT FTGL_FOUND)
SET(FTGL_DIR_MESSAGE
"FTGL was not found. Make sure FTGL_LIBRARY and FTGL_INCLUDE_DIR are set to the directories containing the include and lib files for FTGL. If you do not have the library you will not be able to use the Text node.")
IF(FTGL_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "${FTGL_DIR_MESSAGE}")
ELSEIF(NOT FTGL_FIND_QUIETLY)
MESSAGE(STATUS "${FTGL_DIR_MESSAGE}")
ELSE(NOT FTGL_FIND_QUIETLY)
ENDIF(FTGL_FIND_REQUIRED)
ENDIF(NOT FTGL_FOUND)
# - Find FTGL
# Find the native FTGL headers and libraries.
#
# FTGL_INCLUDE_DIR - where to find FTGL.h, etc.
# FTGL_LIBRARIES - List of libraries when using FTGL.
# FTGL_FOUND - True if FTGL found.
GET_FILENAME_COMPONENT(module_file_path ${CMAKE_CURRENT_LIST_FILE} PATH )
# Look for the header file.
FIND_PATH(FTGL_INCLUDE_DIR NAMES FTGL/ftgl.h
PATHS /usr/include
/usr/local/include
../../External/include
"C:\\libs\\ftgl\\ftgl"
${module_file_path}/../../../External/include)
#MARK_AS_ADVANCED(FTGL_INCLUDE_DIR)
if ( WIN32 )
# Look for the library.
FIND_LIBRARY(FTGL_LIBRARY_RELEASE NAMES ftgl ftgl_dynamic_MTD
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
"C:\\libs\\ftgl\\msvc\\Build"
${module_file_path}/../../../External/lib)
FIND_LIBRARY(FTGL_LIBRARY_DEBUG NAMES ftgl_d ftgld
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
"C:\\libs\\ftgl\\msvc\\Build"
${module_file_path}/../../../External/lib)
set( FTGL_LIBRARY optimized;${FTGL_LIBRARY_RELEASE};debug;${FTGL_LIBRARY_DEBUG} )
# Get paths to libraries. Required to link to libs and copy dlls from there
GET_FILENAME_COMPONENT( FTGL_LIBRARY_DIR_RELEASE ${FTGL_LIBRARY_RELEASE} PATH )
GET_FILENAME_COMPONENT( FTGL_LIBRARY_DIR_DEBUG ${FTGL_LIBRARY_DEBUG} PATH )
list(APPEND FTGL_LIBRARY_DIRS ${FTGL_LIBRARY_DIR_DEBUG} ${FTGL_LIBRARY_DIR_RELEASE} )
else(WIN32)
FIND_LIBRARY(FTGL_LIBRARY NAMES ftgl ftgl_dynamic_MTD
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
"C:\\libs\\ftgl\\msvc\\Build"
${module_file_path}/../../../External/lib)
endif(WIN32)
#MARK_AS_ADVANCED(FTGL_LIBRARY)
IF( WIN32 AND PREFER_STATIC_LIBRARIES )
SET( FTGL_STATIC_LIBRARY_NAME ftgl_static_MTD )
IF( MSVC80 )
SET( FTGL_STATIC_LIBRARY_NAME ftgl_static_MTD_vc8 )
ELSEIF( MSVC90 )
SET( FTGL_STATIC_LIBRARY_NAME ftgl_static_MTD_vc9 )
ENDIF( MSVC80 )
FIND_LIBRARY( FTGL_STATIC_LIBRARY NAMES ${FTGL_STATIC_LIBRARY_NAME}
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
${module_file_path}/../../../External/lib )
MARK_AS_ADVANCED(FTGL_STATIC_LIBRARY)
FIND_LIBRARY( FTGL_STATIC_DEBUG_LIBRARY NAMES ${FTGL_STATIC_LIBRARY_NAME}_d
PATHS /usr/lib64
/usr/local/lib64
/usr/lib
/usr/local/lib
../../External/lib
${module_file_path}/../../../External/lib )
MARK_AS_ADVANCED(FTGL_STATIC_DEBUG_LIBRARY)
IF( FTGL_STATIC_LIBRARY OR FTGL_STATIC_DEBUG_LIBRARY )
SET( FTGL_STATIC_LIBRARIES_FOUND 1 )
ENDIF( FTGL_STATIC_LIBRARY OR FTGL_STATIC_DEBUG_LIBRARY )
ENDIF( WIN32 AND PREFER_STATIC_LIBRARIES )
IF( FTGL_LIBRARY OR FTGL_STATIC_LIBRARIES_FOUND )
SET( FTGL_LIBRARIES_FOUND 1 )
ENDIF( FTGL_LIBRARY OR FTGL_STATIC_LIBRARIES_FOUND )
# Copy the results to the output variables.
IF(FTGL_INCLUDE_DIR AND FTGL_LIBRARIES_FOUND)
SET(FTGL_FOUND 1)
IF( WIN32 AND PREFER_STATIC_LIBRARIES AND FTGL_STATIC_LIBRARIES_FOUND )
IF(FTGL_STATIC_LIBRARY)
SET(FTGL_LIBRARIES optimized ${FTGL_STATIC_LIBRARY} )
ELSE(FTGL_STATIC_LIBRARY)
SET(FTGL_LIBRARIES optimized ${FTGL_STATIC_LIBRARY_NAME} )
MESSAGE( STATUS, "FTGL static release libraries not found. Release build might not work." )
ENDIF(FTGL_STATIC_LIBRARY)
IF(FTGL_STATIC_DEBUG_LIBRARY)
SET(FTGL_LIBRARIES ${FTGL_LIBRARIES} debug ${FTGL_STATIC_DEBUG_LIBRARY} )
ELSE(FTGL_STATIC_DEBUG_LIBRARY)
SET(FTGL_LIBRARIES ${FTGL_LIBRARIES} debug ${FTGL_STATIC_LIBRARY_NAME}_d )
MESSAGE( STATUS, "FTGL static debug libraries not found. Debug build might not work." )
ENDIF(FTGL_STATIC_DEBUG_LIBRARY)
SET( FTGL_LIBRARY_STATIC 1 )
ELSE( WIN32 AND PREFER_STATIC_LIBRARIES AND FTGL_STATIC_LIBRARIES_FOUND )
SET(FTGL_LIBRARIES ${FTGL_LIBRARY})
ENDIF( WIN32 AND PREFER_STATIC_LIBRARIES AND FTGL_STATIC_LIBRARIES_FOUND )
SET(FTGL_INCLUDE_DIR ${FTGL_INCLUDE_DIR})
ELSE(FTGL_INCLUDE_DIR AND FTGL_LIBRARIES_FOUND)
SET(FTGL_FOUND 0)
SET(FTGL_LIBRARIES)
SET(FTGL_INCLUDE_DIR)
ENDIF(FTGL_INCLUDE_DIR AND FTGL_LIBRARIES_FOUND)
# Report the results.
IF(NOT FTGL_FOUND)
SET(FTGL_DIR_MESSAGE
"FTGL was not found. Make sure FTGL_LIBRARY and FTGL_INCLUDE_DIR are set to the directories containing the include and lib files for FTGL. If you do not have the library you will not be able to use the Text node.")
IF(FTGL_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "${FTGL_DIR_MESSAGE}")
ELSEIF(NOT FTGL_FIND_QUIETLY)
MESSAGE(STATUS "${FTGL_DIR_MESSAGE}")
ELSE(NOT FTGL_FIND_QUIETLY)
ENDIF(FTGL_FIND_REQUIRED)
ENDIF(NOT FTGL_FOUND)
# - Try to find PCRE
# Once done this will define
#
# PCRE_FOUND - system has PCRE
# PCRE_INCLUDE_DIR - the PCRE include directory
# PCRE_LIBRARY - Link these to use PCRE
#
IF (PCRE_INCLUDE_DIRS)
# Already in cache, be silent
SET(PCRE_FIND_QUIETLY TRUE)
ENDIF (PCRE_INCLUDE_DIRS)
FIND_PATH( PCRE_INCLUDE_DIR pcre.h
PATHS "/usr/include" "C:/libs/PCRE/include")
if( WIN32 )
FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp.lib
PATHS "C:/libs/PCRE/lib")
GET_FILENAME_COMPONENT( PCRE_LIBRARY_DIR ${PCRE_LIBRARY} PATH )
else (WIN32)
FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp
PATHS /lib /usr/lib /usr/local/lib )
endif( WIN32)
IF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET(PCRE_FOUND TRUE)
ELSE (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET( PCRE_FOUND FALSE )
ENDIF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
# - Try to find PCRE
# Once done this will define
#
# PCRE_FOUND - system has PCRE
# PCRE_INCLUDE_DIR - the PCRE include directory
# PCRE_LIBRARY - Link these to use PCRE
#
IF (PCRE_INCLUDE_DIRS)
# Already in cache, be silent
SET(PCRE_FIND_QUIETLY TRUE)
ENDIF (PCRE_INCLUDE_DIRS)
FIND_PATH( PCRE_INCLUDE_DIR pcre.h
PATHS "/usr/include" "C:/libs/PCRE/include")
if( WIN32 )
FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp.lib
PATHS "C:/libs/PCRE/lib")
# Store the library dir. May be used for linking to dll!
GET_FILENAME_COMPONENT( PCRE_LIBRARY_DIR ${PCRE_LIBRARY} PATH )
else (WIN32)
FIND_LIBRARY( PCRE_LIBRARY
NAMES pcrecpp
PATHS /lib /usr/lib /usr/local/lib )
endif( WIN32)
IF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET(PCRE_FOUND TRUE)
ELSE (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
SET( PCRE_FOUND FALSE )
ENDIF (PCRE_INCLUDE_DIR AND PCRE_LIBRARY)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment