diff options
| -rw-r--r-- | modules/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | modules/FindAttica.cmake | 47 | ||||
| -rw-r--r-- | modules/FindLibAttica.cmake | 47 | 
3 files changed, 48 insertions, 48 deletions
| diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 3c41084a..fe64fe3b 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -20,7 +20,6 @@ set(cmakeFiles CheckCXXSourceCompiles.cmake                 FindAGG.cmake                 FindAkode.cmake                 FindAlsa.cmake -               FindAttica.cmake                 FindAutomoc4.cmake                 FindAvahi.cmake                 FindBerkeleyDB.cmake @@ -67,6 +66,7 @@ set(cmakeFiles CheckCXXSourceCompiles.cmake                 FindKorundum.cmake                 FindLCMS.cmake                 FindLibArt.cmake +               FindLibAttica.cmake                 FindLibKonq.cmake                 FindLibLZMA.cmake                 FindLibXml2.cmake diff --git a/modules/FindAttica.cmake b/modules/FindAttica.cmake deleted file mode 100644 index 22a30469..00000000 --- a/modules/FindAttica.cmake +++ /dev/null @@ -1,47 +0,0 @@ -# Try to find the Attica library -# Once done this will define -# -#   ATTICA_FOUND          Indicates that Attica was found -#   ATTICA_LIBRARIES      Libraries needed to use Attica -#   ATTICA_LIBRARY_DIRS   Paths needed for linking against Attica -#   ATTICA_INCLUDE_DIRS   Paths needed for finding Attica include files -# -# Copyright (c) 2009 Frederik Gladhorn <gladhorn@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. - -IF (ATTICA_INCLUDE_DIR AND ATTICA_LIBRARIES) -   # in cache already -   SET(Attica_FIND_QUIETLY TRUE) -ENDIF (ATTICA_INCLUDE_DIR AND ATTICA_LIBRARIES) - -IF (NOT WIN32) -   # use pkg-config to get the directories and then use these values -   # in the FIND_PATH() and FIND_LIBRARY() calls -   FIND_PACKAGE(PkgConfig) -   PKG_CHECK_MODULES(PC_ATTICA QUIET libattica-0.1) -   SET(ATTICA_DEFINITIONS ${PC_ATTICA_CFLAGS_OTHER}) -ENDIF (NOT WIN32) - -FIND_PATH(ATTICA_INCLUDE_DIR attica/provider.h -   HINTS -   ${PC_ATTICA_INCLUDEDIR} -   ${PC_ATTICA_INCLUDE_DIRS} -   PATH_SUFFIXES attica -   ) - -FIND_LIBRARY(ATTICA_LIBRARIES NAMES attica libattica -   HINTS -   ${PC_ATTICA_LIBDIR} -   ${PC_ATTICA_LIBRARY_DIRS} -   ) - -INCLUDE(FindPackageHandleStandardArgs) - -# handle the QUIETLY and REQUIRED arguments and set ATTICA_FOUND to TRUE if -# all listed variables are TRUE -FIND_PACKAGE_HANDLE_STANDARD_ARGS(libattica DEFAULT_MSG ATTICA_LIBRARIES ATTICA_INCLUDE_DIR) - -MARK_AS_ADVANCED(ATTICA_INCLUDE_DIR ATTICA_LIBRARIES) - - diff --git a/modules/FindLibAttica.cmake b/modules/FindLibAttica.cmake new file mode 100644 index 00000000..39ae84d4 --- /dev/null +++ b/modules/FindLibAttica.cmake @@ -0,0 +1,47 @@ +# Try to find the Attica library +# Once done this will define +# +#   LIBATTICA_FOUND          Indicates that Attica was found +#   LIBATTICA_LIBRARIES      Libraries needed to use Attica +#   LIBATTICA_LIBRARY_DIRS   Paths needed for linking against Attica +#   LIBATTICA_INCLUDE_DIRS   Paths needed for finding Attica include files +# +# Copyright (c) 2009 Frederik Gladhorn <gladhorn@kde.org> +# +# Redistribution and use is allowed according to the terms of the BSD license. + +IF (LIBATTICA_INCLUDE_DIR AND LIBATTICA_LIBRARIES) +   # in cache already +   SET(libattica_FIND_QUIETLY TRUE) +ENDIF (LIBATTICA_INCLUDE_DIR AND LIBATTICA_LIBRARIES) + +IF (NOT WIN32) +   # use pkg-config to get the directories and then use these values +   # in the FIND_PATH() and FIND_LIBRARY() calls +   FIND_PACKAGE(PkgConfig) +   PKG_CHECK_MODULES(PC_LIBATTICA QUIET libattica-0.1) +   SET(LIBATTICA_DEFINITIONS ${PC_ATTICA_CFLAGS_OTHER}) +ENDIF (NOT WIN32) + +FIND_PATH(LIBATTICA_INCLUDE_DIR attica/provider.h +   HINTS +   ${PC_LIBATTICA_INCLUDEDIR} +   ${PC_LIBATTICA_INCLUDE_DIRS} +   PATH_SUFFIXES attica +   ) + +FIND_LIBRARY(LIBATTICA_LIBRARIES NAMES attica libattica +   HINTS +   ${PC_LIBATTICA_LIBDIR} +   ${PC_LIBATTICA_LIBRARY_DIRS} +   ) + +INCLUDE(FindPackageHandleStandardArgs) + +# handle the QUIETLY and REQUIRED arguments and set ATTICA_FOUND to TRUE if +# all listed variables are TRUE +FIND_PACKAGE_HANDLE_STANDARD_ARGS(libattica DEFAULT_MSG LIBATTICA_LIBRARIES LIBATTICA_INCLUDE_DIR) + +MARK_AS_ADVANCED(LIBATTICA_INCLUDE_DIR LIBATTICA_LIBRARIES) + + | 
