summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-10-06 15:58:52 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-10-06 19:11:30 +0200
commitf235e2a766f344f426c6054b7e69a42b41c79e3b (patch)
treeda94e0502965cc7cf1a8d3c9f9eca543a682f742 /src/CMakeLists.txt
parent92765a6911bc9b442bc670fd6e2370454814a34d (diff)
downloadunity-window-decorator-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.gz
unity-window-decorator-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.bz2
Initial version of CMake build system.
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..2bf2db4
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,51 @@
+include_directories (
+ ${compiz_SOURCE_DIR}/include
+ ${compiz_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${COMPIZ_INCLUDE_DIRS}
+)
+
+add_definitions (
+ -DHAVE_CONFIG_H
+ -DPLUGINDIR=\\\"${compiz_plugindir}\\\"
+ -DIMAGEDIR=\\\"${compiz_imagedir}\\\"
+ -DMETADATADIR=\\\"${compiz_metadatadir}\\\"
+)
+
+link_directories (
+ ${COMPIZ_LINK_DIRS}
+)
+
+add_executable (compiz
+ region.cpp
+ atoms.cpp
+ timer.cpp
+ main.cpp
+ actions.cpp
+ screen.cpp
+ window.cpp
+ metadata.cpp
+ action.cpp
+ option.cpp
+ string.cpp
+ match.cpp
+ privates.cpp
+ event.cpp
+ plugin.cpp
+ session.cpp
+ output.cpp
+ rect.cpp
+ size.cpp
+ point.cpp
+ windowgeometry.cpp
+ icon.cpp
+)
+
+target_link_libraries (
+ compiz ${COMPIZ_LIBRARIES} m
+)
+
+install (
+ TARGETS compiz
+ DESTINATION ${exec_prefix}
+) \ No newline at end of file