Initial commit.
This commit is contained in:
29
Resources/InsaneWidget/CMake/FindLibInsane.cmake
Normal file
29
Resources/InsaneWidget/CMake/FindLibInsane.cmake
Normal file
@@ -0,0 +1,29 @@
|
||||
#
|
||||
|
||||
# - Try to find LibInsane
|
||||
# Once done this will define
|
||||
# LIBINSANE_FOUND - System has LibInsane
|
||||
# LIBINSANE_INCLUDE_DIRS - The LibInsane include directories
|
||||
# LIBINSANE_LIBRARIES - The libraries needed to use LibInsane
|
||||
# LIBINSANE_DEFINITIONS - Compiler switches required for using LibInsane
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PC_LIBINSANE QUIET libinsane.pc)
|
||||
set(LIBINSANE_DEFINITIONS ${PC_LIBINSANE_CFLAGS_OTHER})
|
||||
|
||||
find_path(LIBINSANE_INCLUDE_DIR libinsane/sane.h
|
||||
HINTS ${PC_LIBINSANE_INCLUDEDIR} ${PC_LIBINSANE_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES libinsane )
|
||||
|
||||
find_library(LIBINSANE_LIBRARY NAMES libinsane.so
|
||||
HINTS ${PC_LIBINSANE_LIBDIR} ${PC_LIBINSANE_LIBRARY_DIRS} )
|
||||
|
||||
set(LIBINSANE_LIBRARIES ${LIBINSANE_LIBRARY})
|
||||
set(LIBINSANE_INCLUDE_DIRS ${LIBINSANE_INCLUDE_DIR} )
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
# handle the QUIETLY and REQUIRED arguments and set LIBINSANE_FOUND to TRUE
|
||||
# if all listed variables are TRUE
|
||||
find_package_handle_standard_args(LibInsane DEFAULT_MSG
|
||||
LIBINSANE_LIBRARY LIBINSANE_INCLUDE_DIR)
|
||||
mark_as_advanced(LIBINSANE_INCLUDE_DIR LIBINSANE_LIBRARY )
|
||||
23
Resources/InsaneWidget/CMake/FindPaper.cmake
Normal file
23
Resources/InsaneWidget/CMake/FindPaper.cmake
Normal file
@@ -0,0 +1,23 @@
|
||||
# - Try to find Paper
|
||||
# Once done this will define
|
||||
# PAPER_FOUND - System has Paper
|
||||
# PAPER_INCLUDE_DIRS - The Paper include directories
|
||||
# PAPER_LIBRARIES - The libraries needed to use Paper
|
||||
# PAPER_DEFINITIONS - Compiler switches required for using Paper
|
||||
|
||||
find_path(PAPER_INCLUDE_DIR paper.h
|
||||
HINTS ${PC_PAPER_INCLUDEDIR} ${PC_PAPER_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES paper )
|
||||
|
||||
find_library(PAPER_LIBRARY NAMES libpaper.so
|
||||
HINTS ${PC_PAPER_LIBDIR} ${PC_PAPER_LIBRARY_DIRS} )
|
||||
|
||||
set(PAPER_LIBRARIES ${PAPER_LIBRARY} )
|
||||
set(PAPER_INCLUDE_DIRS ${PAPER_INCLUDE_DIR} )
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
# handle the QUIETLY and REQUIRED arguments and set PAPER_FOUND to TRUE
|
||||
# if all listed variables are TRUE
|
||||
find_package_handle_standard_args(Paper DEFAULT_MSG
|
||||
PAPER_LIBRARY PAPER_INCLUDE_DIR)
|
||||
mark_as_advanced(PAPER_INCLUDE_DIR PAPER_LIBRARY )
|
||||
27
Resources/InsaneWidget/CMake/FindPoDoFo.cmake
Normal file
27
Resources/InsaneWidget/CMake/FindPoDoFo.cmake
Normal file
@@ -0,0 +1,27 @@
|
||||
# - Try to find PoDoFo
|
||||
# Once done this will define
|
||||
# PODOFO_FOUND - System has PoDoFo
|
||||
# PODOFO_INCLUDE_DIRS - The PoDoFo include directories
|
||||
# PODOFO_LIBRARIES - The libraries needed to use PoDoFo
|
||||
# PODOFO_DEFINITIONS - Compiler switches required for using PoDoFo
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(PC_PODOFO QUIET libpodofo.pc)
|
||||
set(PODOFO_DEFINITIONS ${PC_PODOFO_CFLAGS_OTHER})
|
||||
|
||||
find_path(PODOFO_INCLUDE_DIR podofo/podofo.h
|
||||
HINTS ${PC_PODOFO_INCLUDEDIR} ${PC_PODOFO_INCLUDE_DIRS}
|
||||
PATH_SUFFIXES podofo )
|
||||
|
||||
find_library(PODOFO_LIBRARY NAMES libpodofo.so
|
||||
HINTS ${PC_PODOFO_LIBDIR} ${PC_PODOFO_LIBRARY_DIRS} )
|
||||
|
||||
set(PODOFO_LIBRARIES ${PODOFO_LIBRARY} )
|
||||
set(PODOFO_INCLUDE_DIRS ${PODOFO_INCLUDE_DIR} )
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
# handle the QUIETLY and REQUIRED arguments and set PODOFO_FOUND to TRUE
|
||||
# if all listed variables are TRUE
|
||||
find_package_handle_standard_args(PoDoFo DEFAULT_MSG
|
||||
PODOFO_LIBRARY PODOFO_INCLUDE_DIR)
|
||||
mark_as_advanced(PODOFO_INCLUDE_DIR PODOFO_LIBRARY )
|
||||
Reference in New Issue
Block a user