1
# - Try to find Lomse library
2
# Once done, this will define
4
# LOMSE_FOUND - system has Lomse
5
# LOMSE_INCLUDE_DIRS - the Lomse include directories
6
# LOMSE_LIBRARIES - link these to use Lomse
7
# LOMSE_VERSION - detected version of Lomse
9
# See documentation on how to write CMake scripts at
10
# http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
13
include(LibFindMacros)
17
set( LOMSE_LIBDIR ${ROOT_DIR}/packages/lomse/lib )
18
set( LOMSE_INCLUDE_DIR ${ROOT_DIR}/packages/lomse/include )
19
set( LOMSE_LIBRARY "lomse.lib" )
22
find_path(LOMSE_INCLUDE_DIR NAMES lomse_doorway.h
24
/usr/local/include/lomse
27
/opt/local/include/lomse
28
/usr/freeware/include/lomse
31
find_library(LOMSE_LIBRARY
32
NAMES liblomse liblomse.a
42
# set the user variables
43
if( LOMSE_INCLUDE_DIR )
44
set( LOMSE_INCLUDE_DIRS "${LOMSE_INCLUDE_DIR};${LOMSE_INCLUDE_DIR}/agg" )
46
set( LOMSE_INCLUDE_DIRS "${LOMSE_INCLUDE_DIR}" )
48
set( LOMSE_LIBRARIES "${LOMSE_LIBRARY}" )
50
# handle the QUIETLY and REQUIRED arguments and set LOMSE_FOUND to TRUE if
51
# all listed variables are TRUE
52
INCLUDE(FindPackageHandleStandardArgs)
53
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lomse DEFAULT_MSG LOMSE_LIBRARY LOMSE_INCLUDE_DIRS)
55
MARK_AS_ADVANCED(LOMSE_LIBRARY LOMSE_INCLUDE_DIR)
57
#MESSAGE ( "LOMSE_INCLUDE_DIRS => ${LOMSE_INCLUDE_DIRS}" )
58
#MESSAGE ( "LOMSE_LIBRARIES => ${LOMSE_LIBRARIES}" )