Changeset 6203 for branches/newosd/CMakeLists.txt
- Timestamp:
- 05/25/08 10:01:31 (8 months ago)
- Files:
-
- 1 modified
-
branches/newosd/CMakeLists.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/newosd/CMakeLists.txt
r5986 r6203 1 1 project(newosd) 2 cmake_minimum_required(VERSION 2. 4.2)2 cmake_minimum_required(VERSION 2.6.0) 3 3 4 4 # Plugin version … … 9 9 # Install dirs 10 10 set(INSTALL_LIB_DIR lib CACHE PATH 11 "Directory to install the plugin to. A relative path is relative to CMAKE_INSTALL_PREFIX.")11 "Directory to install the plugin to. A relative path is relative to CMAKE_INSTALL_PREFIX.") 12 12 mark_as_advanced(INSTALL_LIB_DIR) 13 13 … … 21 21 22 22 if (NOT LICQ_INCLUDE_DIR) 23 message(FATAL_ERROR "Licq header files not found. Please specify the location with -DLICQ_INCLUDE_DIR")23 message(FATAL_ERROR "Licq header files not found. Please specify the location with -DLICQ_INCLUDE_DIR") 24 24 endif (NOT LICQ_INCLUDE_DIR) 25 25 … … 31 31 32 32 # use pkg-config to find libaosd stuff 33 include( UsePkgConfig)33 include(FindPkgConfig) 34 34 35 pkgconfig(libaosd-text AOSD_INCLUDE_DIR AOSD_LINK_DIR AOSD_LINK_FLAGS AOSD_CFLAGS) 35 if (NOT PKG_CONFIG_FOUND) 36 message(FATAL_ERROR "pkg-config could not be found on your system, unable to continue.") 37 endif (NOT PKG_CONFIG_FOUND) 36 38 37 if (AOSD_LINK_FLAGS) 38 message(STATUS "Found aosd-text library dir: ${AOSD_LINK_DIR}") 39 set(LIBRARIES ${LIBRARIES} ${AOSD_LINK_FLAGS}) 40 include_directories(${AOSD_INCLUDE_DIR}) 39 pkg_search_module(AOSD REQUIRED libaosd-text) 40 41 if (AOSD_FOUND) 42 set(LIBRARIES ${LIBRARIES} ${AOSD_LIBRARIES}) 43 include_directories(${AOSD_INCLUDE_DIRS}) 41 44 add_definitions(${AOSD_CFLAGS}) 42 else (AOSD_ LINK_FLAGS)45 else (AOSD_FOUND) 43 46 message(FATAL_ERROR "libaosd-text wasn't found...") 44 endif (AOSD_ LINK_FLAGS)47 endif (AOSD_FOUND) 45 48 46 49 # To find config.h
