blob: 382ab6e7c90b6ba8f85ebc6914ba15df10bd4520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
include( FindPkgConfig )
include( FindDoxygen )
add_custom_target( unit )
set( EPT_VERSION "1.0.9" )
set( LIBAPT_ABI_VERSION "4.12")
set( LIBEPT_SOVERSION "1.aptpkg${LIBAPT_ABI_VERSION}" )
set( APT_INCLUDES "/usr/include/" CACHE STRING "apt include path" )
set( APT_LINKDIRS "/usr/lib/" CACHE STRING "apt library path" )
set( OPT_FLAGS "-O0 -g" CACHE STRING "optimization level" )
option( INTERNAL_TAGCOLL "use internal copy of tagcoll" )
option( INTERNAL_WIBBLE "use internal copy of wibble" )
option( RPM "using apt-rpm" )
if( INTERNAL_WIBBLE )
add_subdirectory( wibble )
set( WIBBLE_INCLUDE_DIRS ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} )
set( WIBBLE_LIBRARY_DIRS ${wibble_BINARY_DIR} )
set( WIBBLE_LIBRARIES "wibble" )
set( WIBBLE_TEST_CMAKE "${wibble_SOURCE_DIR}/test.cmake" )
else( INTERNAL_WIBBLE )
pkg_check_modules( WIBBLE REQUIRED "libwibble >= 0.1.22" )
find_program( WIBBLE_TEST_GENRUNNER wibble-test-genrunner )
set( WIBBLE_TEST_CMAKE "${WIBBLE_PREFIX}/share/wibble/test.cmake" )
endif( INTERNAL_WIBBLE )
if( INTERNAL_TAGCOLL )
set( TAGCOLL_FOUND ON )
set( TAGCOLL_INCLUDE_DIRS ${CMAKE_SOURCE_DIR} )
set( TAGCOLL_LIBRARY_DIRS ${tagcoll_BINARY_DIR} )
set( TAGCOLL_LIBRARIES "tagcoll2" )
add_subdirectory( tagcoll )
else( INTERNAL_TAGCOLL )
pkg_check_modules( TAGCOLL REQUIRED "libtagcoll2 >= 2.0" )
endif( INTERNAL_TAGCOLL )
add_subdirectory( ept )
add_subdirectory( tools )
add_subdirectory( doc )
|