~cairo-dock-team/ubuntu/oneiric/cairo-dock/2.3.0-3

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2010-08-09 23:26:12 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20100809232612-pocdxliaxjdetm37
Tags: upstream-2.2.0~0beta4
ImportĀ upstreamĀ versionĀ 2.2.0~0beta4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
add_subdirectory (icon-factory)
 
3
add_subdirectory (gldit)
 
4
add_subdirectory (implementations)
 
5
 
 
6
SET(cairo_dock_SRCS
 
7
        cairo-dock-default-view.c                       cairo-dock-default-view.h
 
8
        cairo-dock-menu.c                                       cairo-dock-menu.h 
 
9
        cairo-dock-user-interaction.c           cairo-dock-user-interaction.h 
 
10
        cairo-dock-gui-main.c                           cairo-dock-gui-main.h
 
11
        cairo-dock-gui-simple.c                         cairo-dock-gui-simple.h
 
12
        cairo-dock-gui-switch.c                         cairo-dock-gui-switch.h
 
13
        cairo-dock-gui-launcher.c                       cairo-dock-gui-launcher.h
 
14
        cairo-dock-gui-themes.c                         cairo-dock-gui-themes.h
 
15
)
 
16
 
 
17
########### compilation ###############
 
18
 
 
19
# Make sure the compiler can find include files from the libraries.
 
20
include_directories(
 
21
        ${PACKAGE_INCLUDE_DIRS}
 
22
        ${XEXTEND_INCLUDE_DIRS}
 
23
        ${CMAKE_SOURCE_DIR}/src
 
24
        ${CMAKE_SOURCE_DIR}/src/gldit
 
25
        ${CMAKE_SOURCE_DIR}/src/icon-factory
 
26
        ${CMAKE_SOURCE_DIR}/src/implementations)
 
27
 
 
28
# Make sure the linker can find the libraries.
 
29
link_directories(
 
30
        ${PACKAGE_LIBRARY_DIRS}
 
31
        ${XEXTEND_LIBRARY_DIRS}
 
32
        ${CMAKE_SOURCE_DIR}/src/gldit
 
33
        ${CMAKE_SOURCE_DIR}/src/icon-factory
 
34
        ${CMAKE_SOURCE_DIR}/src/implementations)
 
35
 
 
36
# Add executable that is built from the source files.
 
37
add_executable (${PROJECT_NAME}
 
38
        ${cairo_dock_SRCS}
 
39
        cairo-dock.c)
 
40
 
 
41
# Link the executable to the librairies.
 
42
target_link_libraries (${PROJECT_NAME}
 
43
        ${PACKAGE_LIBRARIES}
 
44
        ${XEXTEND_LIBRARIES}
 
45
        ${LIBCRYPT_LIBS}
 
46
        gldi
 
47
        icon-factory
 
48
        implementations)
 
49
 
 
50
# install the program once it is built.
 
51
install(
 
52
        TARGETS ${PACKAGE}
 
53
        DESTINATION bin)
 
54
 
 
55
 
 
56
if ("${build-desklet-standalone}" STREQUAL "yes")
 
57
        add_subdirectory (cairo-desklet)
 
58
endif()