aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2009-09-10 19:18:27 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2009-09-10 19:27:36 -0300
commit30a5c9f3038ede7d52cfe2bcda586ed97525c86b (patch)
treebdfdd9771f92b0125f505f8c523db2b4e65520d0 /CMakeLists.txt
parentfa88814edd7885b0ec4f13ada015e005f5ce6e26 (diff)
Avoid use of pkg_config for search for libraries.
Fixes Bug #39. Reviewed by Luciano Miguel Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f1059c67..668d50f6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,10 +4,9 @@ cmake_minimum_required(VERSION 2.6)
find_package(Boost COMPONENTS graph REQUIRED)
find_package(Qt4 4.5.0 REQUIRED)
-find_package(PkgConfig)
-pkg_check_modules(LIBXML2 REQUIRED libxml-2.0>=2.6.32)
-pkg_check_modules(LIBXSLT REQUIRED libxslt>=1.1.19)
+find_package(LibXml2 2.6.32 REQUIRED)
+find_package(LibXslt 1.1.19 REQUIRED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -DAPIEXTRACTOR_ENABLE_DUPLICATE_ENUM_VALUES")
set(apiextractor_MAJOR_VERSION 0)
@@ -71,8 +70,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/parser
${CMAKE_CURRENT_SOURCE_DIR}/parser/rpp
${QT_INCLUDE_DIR} ${Boost_INCLUDE_DIR}
- ${LIBXSLT_INCLUDE_DIRS}
- ${LIBXML2_INCLUDE_DIRS}
+ ${LIBXSLT_INCLUDE_DIR}
+ ${LIBXML2_INCLUDE_DIR}
)
add_library(apiextractor SHARED ${apiextractor_SRC} ${apiextractor_RCCS_SRC})