~mc-return/compiz/compiz.merge-src-screen.cpp-improvements

« back to all changes in this revision

Viewing changes to plugins/opengl/CMakeLists.txt

  • Committer: Dennis kasprzyk
  • Author(s): Dennis Kasprzyk
  • Date: 2009-03-15 05:09:18 UTC
  • Revision ID: git-v1:163f6b6f3c3b7764987cbdf8e03cc355edeaa499
New generalized build system.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
find_package (OpenGL REQUIRED)
2
 
 
3
 
include_directories (
4
 
    ${compiz_SOURCE_DIR}/include
5
 
    ${compiz_BINARY_DIR}
6
 
    ${CMAKE_CURRENT_SOURCE_DIR}
7
 
    ${COMPIZ_INCLUDE_DIRS}
8
 
    ${OPENGL_INCLUDE_DIR}
9
 
)
10
 
 
11
 
link_directories (${compiz_plugindir})
12
 
 
13
 
add_definitions (
14
 
    -DHAVE_CONFIG_H
15
 
    -DLOCALEDIR=\\\"${datadir}/locale\\\"
16
 
    -DPLUGINDIR=\\\"${compiz_plugindir}\\\"
17
 
    -DIMAGEDIR=\\\"${compiz_imagedir}\\\"
18
 
    -DMETADATADIR=\\\"${compiz_metadatadir}\\\"
19
 
)
20
 
 
21
 
add_library (opengl SHARED
22
 
    opengl.cpp
23
 
    screen.cpp
24
 
    window.cpp
25
 
    paint.cpp
26
 
    texture.cpp
27
 
    fragment.cpp
28
 
    matrix.cpp
29
 
    vector.cpp
30
 
)
31
 
 
32
 
target_link_libraries (
33
 
    opengl composite ${OPENGL_gl_LIBRARY}
34
 
)
35
 
 
36
 
install (
37
 
    TARGETS opengl
38
 
    DESTINATION ${compiz_plugindir}
39
 
)
 
 
b'\\ No newline at end of file'
 
1
find_package (Compiz REQUIRED)
 
2
 
 
3
include (CompizPlugin)
 
4
 
 
5
find_package (OpenGL)
 
6
if (OPENGL_FOUND)
 
7
    compiz_plugin(opengl PLUGINDEPS composite LIBRARIES ${OPENGL_gl_LIBRARY} INCDIRS ${OPENGL_INCLUDE_DIR})
 
8
endif ()
 
 
b'\\ No newline at end of file'