~ubuntu-branches/ubuntu/saucy/listaller/saucy

« back to all changes in this revision

Viewing changes to .pc/01_fix-apbuild-cmake.diff/contrib/apbuild/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Matthias Klumpp
  • Date: 2012-04-18 18:42:46 UTC
  • Revision ID: package-import@ubuntu.com-20120418184246-lwq6i48qq5qjzsqe
Tags: 0.5.4-1
Initial release (Closes: #669088)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# CMakeLists for BuildTools
 
2
 
 
3
find_package(Vala REQUIRED)
 
4
include("${VALA_USE_FILE}")
 
5
 
 
6
find_package(GLIB2 REQUIRED)
 
7
pkg_check_modules(GEE REQUIRED gee-1.0)
 
8
pkg_check_modules(GIO2 REQUIRED gio-2.0)
 
9
 
 
10
ensure_vala_version("0.10" MINIMUM)
 
11
 
 
12
 
 
13
 
 
14
set(BUILDLIST_SOURCES buildlist.vala
 
15
)
 
16
 
 
17
link_libraries(${GLIB2_LIBRARIES}
 
18
               ${GEE_LIBRARIES}
 
19
               ${GIO2_LIBRARIES}
 
20
)
 
21
 
 
22
include_directories(${CMAKE_BINARY_DIR}
 
23
                    ${CMAKE_CURRENT_SOURCE_DIR}
 
24
                    ${GLIB2_INCLUDE_DIR}
 
25
                    ${GEE_INCLUDE_DIR}
 
26
                    ${GIO2_INCLUDE_DIR}
 
27
)
 
28
 
 
29
add_definitions(${GEE_CFLAGS} ${GEE_CFLAGS_OTHER})
 
30
 
 
31
vala_add_executable("buildlist" ${BUILDLIST_SOURCES}
 
32
                                PACKAGES posix glib-2.0 gio-2.0 gee-1.0
 
33
)
 
34
 
 
35
install(TARGETS buildlist DESTINATION include/apbuild COMPONENT headers)
 
36
install(PROGRAMS apgcc
 
37
                 apg++
 
38
                 make-icons
 
39
                 relaytool
 
40
        DESTINATION bin
 
41
        COMPONENT buildtools
 
42
)
 
43
install(FILES Apbuild/GCC.pm
 
44
              Apbuild/Utils.pm
 
45
        DESTINATION share/apbuild
 
46
        COMPONENT buildtools
 
47
)
 
48
install(FILES ctype.h DESTINATION include/apbuild COMPONENT headers)
 
49
install(FILES relaytool.m4 DESTINATION share/aclocal COMPONENT headers)