adding libqgs for Qt4, remember it is a pure Qt lib ( well lets call it lib even if its only a file ;-) )
svn path=/branches/work/kde4/playground/graphics/cmake/; revision=524640remotes/origin/old/work/newpageview
parent
70504a71cf
commit
f24d0902ce
2 changed files with 40 additions and 7 deletions
@ -0,0 +1,35 @@ |
||||
# - Try to find the libgs library |
||||
# Once done this will define |
||||
# |
||||
# LIBGS_FOUND - system has libgs |
||||
# LIBGS_LIBRARY - Link this to use libgs |
||||
# |
||||
include(CheckLibraryExists) |
||||
|
||||
# reset vars |
||||
set(LIBGS_LIBRARY) |
||||
|
||||
check_library_exists(gs gsapi_new_instance "" LIBGS_LIBRARY) |
||||
|
||||
if(LIBGS_LIBRARY) |
||||
find_library(LIBGS_LDFLAGS NAMES gs |
||||
PATHS |
||||
/usr/lib |
||||
/usr/local/lib |
||||
${GNUWIN32_DIR}/lib |
||||
) |
||||
|
||||
set(LIBGS_FOUND TRUE) |
||||
endif(LIBGS_LIBRARY) |
||||
|
||||
if (LIBGS_FOUND) |
||||
if (NOT LIBGS_FIND_QUIETLY) |
||||
message(STATUS "Found qgs: ${LIBGS_LDFLAGS}") |
||||
endif (NOT LIBGS_FIND_QUIETLY) |
||||
else (LIBGS_FOUND) |
||||
if (LIBGS_FIND_REQUIRED) |
||||
message(FATAL_ERROR "Could NOT find QGS") |
||||
endif (LIBGS_FIND_REQUIRED) |
||||
endif (LIBGS_FOUND) |
||||
|
||||
MARK_AS_ADVANCED(LIBGS_LIBRARY) |
||||
Loading…
Reference in new issue