Blame toonz/cmake/FindLZO.cmake
|
roentgen |
3047bb |
find_path(LZO_INCLUDE_DIR NAMES lzoconf.h HINTS ${THIRDPARTY_LIBS_HINTS} PATH_SUFFIXES lzo/2.09/include/lzo lzo/2.03/include/lzo)
|
|
roentgen |
3047bb |
find_library(LZO_LIBRARY NAMES liblzo2.a lzo2_64.lib HINTS ${THIRDPARTY_LIBS_HINTS} PATH_SUFFIXES lzo/2.09/lib lzo/2.03/lib/LZO_lib)
|
|
roentgen |
3969d9 |
|
|
roentgen |
3969d9 |
message("***** LZO Header path:" ${LZO_INCLUDE_DIR})
|
|
roentgen |
3969d9 |
message("***** LZO Libarary path:" ${LZO_LIBRARY})
|
|
roentgen |
3969d9 |
|
|
roentgen |
3969d9 |
set(LZO_NAMES ${LZO_NAMES} LZO)
|
|
roentgen |
3969d9 |
|
|
roentgen |
3969d9 |
include(FindPackageHandleStandardArgs)
|
|
roentgen |
3047bb |
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LZO DEFAULT_MSG LZO_LIBRARY LZO_INCLUDE_DIR)
|
|
roentgen |
3969d9 |
|
|
roentgen |
3969d9 |
if(LZO_FOUND)
|
|
roentgen |
3969d9 |
set(LZO_LIBRARIES ${LZO_LIBRARY})
|
|
roentgen |
3969d9 |
endif()
|
|
roentgen |
3969d9 |
|
|
roentgen |
3969d9 |
mark_as_advanced(LZO_LIBRARY LZO_INCLUDE_DIR)
|