~compiz-team/compiz/0.9.10

« back to all changes in this revision

Viewing changes to src/plugin/CMakeLists.txt

  • Committer: Alan Griffiths
  • Date: 2012-01-24 16:36:23 UTC
  • mto: (2961.1.4 trunk)
  • mto: This revision was merged to the branch mainline in revision 2966.
  • Revision ID: alan@octopull.co.uk-20120124163623-zs5av09ccn50yas6
Tests covering mocking filesystem

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include (CompizDefaults)
 
2
include (CompizCommon)
 
3
 
 
4
INCLUDE_DIRECTORIES(
 
5
  ${compiz_SOURCE_DIR}/build/generated
 
6
  ${compiz_SOURCE_DIR}/include
 
7
 
 
8
  ${compiz_SOURCE_DIR}/src/timer/include
 
9
  ${compiz_SOURCE_DIR}/src/timer/src
 
10
 
 
11
  ${compiz_SOURCE_DIR}/src/rect/include
 
12
  ${compiz_SOURCE_DIR}/src/window/geometry/include
 
13
  ${compiz_SOURCE_DIR}/src/window/extents/include
 
14
 
 
15
  ${compiz_SOURCE_DIR}/src/pluginclasshandler/include
 
16
 
 
17
  ${COMPIZ_INCLUDE_DIRS}
 
18
 
 
19
  ${Boost_INCLUDE_DIRS}
 
20
)
 
21
 
 
22
SET( PUBLIC_HEADERS )
 
23
SET( PRIVATE_HEADERS )
 
24
 
 
25
add_definitions (
 
26
    -DHAVE_CONFIG_H
 
27
    -DPLUGINDIR=\\\"${compiz_plugindir}\\\"
 
28
    -DSHAREDIR=\\\"${compiz_sharedir}\\\"
 
29
    -DMETADATADIR=\\\"${compiz_metadatadir}\\\"
 
30
)
 
31
 
 
32
SET( SRCS ${compiz_SOURCE_DIR}/src/plugin.cpp )
 
33
 
 
34
ADD_LIBRARY( 
 
35
  compiz_plugin STATIC
 
36
                  
 
37
  ${SRCS}
 
38
  
 
39
  ${PUBLIC_HEADERS}
 
40
  ${PRIVATE_HEADERS}
 
41
)
 
42
 
 
43
ADD_SUBDIRECTORY( ${CMAKE_CURRENT_SOURCE_DIR}/tests )
 
44
 
 
45
SET_TARGET_PROPERTIES(
 
46
  compiz_plugin PROPERTIES
 
47
  PUBLIC_HEADER "${PUBLIC_HEADERS}"
 
48
)
 
49
 
 
50
INSTALL(
 
51
  TARGETS                                 compiz_plugin
 
52
  RUNTIME             DESTINATION         bin
 
53
  LIBRARY             DESTINATION         lib
 
54
  ARCHIVE             DESTINATION         lib
 
55
  PUBLIC_HEADER       DESTINATION         include/compiz
 
56
)