New CHM check. Activating okular anyway, and disable its poppler generator if poppler is not found. svn path=/branches/work/kde4/playground/graphics/cmake/; revision=523311remotes/origin/old/work/newpageview
parent
a2fade65ae
commit
8db887dfb1
4 changed files with 85 additions and 5 deletions
@ -0,0 +1,36 @@ |
||||
# - Try to find the chm library |
||||
# Once done this will define |
||||
# |
||||
# CHM_FOUND - system has the chm library |
||||
# CHM_INCLUDE_DIR - the chm include directory |
||||
# CHM_LIBRARY - Link this to use the chm library |
||||
# |
||||
include(CheckLibraryExists) |
||||
|
||||
# reset vars |
||||
set(CHM_INCLUDE_DIR) |
||||
set(CHM_LIBRARY) |
||||
|
||||
FIND_PATH(CHM_INCLUDE_DIR chm_lib.h |
||||
/usr/local/include |
||||
/usr/include |
||||
${GNUWIN32_DIR}/include |
||||
) |
||||
|
||||
#check_library_exists(chm ??? "" CHM_LIBRARY) |
||||
|
||||
if(CHM_INCLUDE_DIR) |
||||
set(CHM_FOUND TRUE) |
||||
endif(CHM_INCLUDE_DIR) |
||||
|
||||
if (CHM_FOUND) |
||||
if (NOT CHM_FIND_QUIETLY) |
||||
message(STATUS "Found CHM: ${CHM_LIBRARY}") |
||||
endif (NOT CHM_FIND_QUIETLY) |
||||
else (CHM_FOUND) |
||||
if (CHM_FIND_REQUIRED) |
||||
message(FATAL_ERROR "Could NOT find CHM") |
||||
endif (CHM_FIND_REQUIRED) |
||||
endif (CHM_FOUND) |
||||
|
||||
MARK_AS_ADVANCED(CHM_INCLUDE_DIR CHM_LIBRARY) |
||||
@ -0,0 +1,36 @@ |
||||
# - Try to find the qgs library |
||||
# Once done this will define |
||||
# |
||||
# QGS_FOUND - system has qgs |
||||
# QGS_INCLUDE_DIR - the qgs include directory |
||||
# QGS_LIBRARY - Link this to use qgs |
||||
# |
||||
include(CheckLibraryExists) |
||||
|
||||
# reset vars |
||||
set(QGS_INCLUDE_DIR) |
||||
set(QGS_LIBRARY) |
||||
|
||||
FIND_PATH(QGS_INCLUDE_DIR qgs.h |
||||
/usr/local/include |
||||
/usr/include |
||||
${GNUWIN32_DIR}/include |
||||
) |
||||
|
||||
check_library_exists(qgs main "" QGS_LIBRARY) |
||||
|
||||
if(QGS_INCLUDE_DIR AND QGS_LIBRARY) |
||||
set(QGS_FOUND TRUE) |
||||
endif(QGS_INCLUDE_DIR AND QGS_LIBRARY) |
||||
|
||||
if (QGS_FOUND) |
||||
if (NOT QGS_FIND_QUIETLY) |
||||
message(STATUS "Found qgs: ${QGS_LIBRARY}") |
||||
endif (NOT QGS_FIND_QUIETLY) |
||||
else (QGS_FOUND) |
||||
if (QGS_FIND_REQUIRED) |
||||
message(FATAL_ERROR "Could NOT find QGS") |
||||
endif (QGS_FIND_REQUIRED) |
||||
endif (QGS_FOUND) |
||||
|
||||
MARK_AS_ADVANCED(QGS_INCLUDE_DIR QGS_LIBRARY) |
||||
Loading…
Reference in new issue