summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--twin/CMakeLists.txt1
-rw-r--r--twin/compton-tde/CMakeLists.txt73
2 files changed, 74 insertions, 0 deletions
diff --git a/twin/CMakeLists.txt b/twin/CMakeLists.txt
index 32d497513..a20f2c2ac 100644
--- a/twin/CMakeLists.txt
+++ b/twin/CMakeLists.txt
@@ -20,6 +20,7 @@ add_subdirectory( clients )
add_subdirectory( oldheaders )
add_subdirectory( data )
tde_conditional_add_subdirectory( WITH_XCOMPOSITE kompmgr )
+tde_conditional_add_subdirectory( WITH_XCOMPOSITE compton-tde )
include_directories(
diff --git a/twin/compton-tde/CMakeLists.txt b/twin/compton-tde/CMakeLists.txt
new file mode 100644
index 000000000..65b9c7ed2
--- /dev/null
+++ b/twin/compton-tde/CMakeLists.txt
@@ -0,0 +1,73 @@
+#################################################
+#
+# (C) 2014 Timothy Pearson
+# kb9vqf (AT) pearsoncomputing (DOT) net
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+
+if( NOT WITH_XRENDER )
+ tde_message_fatal( "xrender support is needed to build compton-tde.\n Pass -DWITH_XRENDER=ON to cmake arguments." )
+elseif( NOT WITH_XRANDR )
+ tde_message_fatal( "xrandr support is needed to build compton-tde.\n Pass -DWITH_XFIXES=ON to cmake arguments." )
+elseif( NOT WITH_XFIXES )
+ tde_message_fatal( "xfixes support is needed to build compton-tde.\n Pass -DWITH_XFIXES=ON to cmake arguments." )
+elseif( NOT WITH_XDAMAGE )
+ tde_message_fatal( "xdamage support is needed to build compton-tde.\n Pass -DWITH_XDAMAGE=ON to cmake arguments." )
+elseif( NOT WITH_XEXT )
+ tde_message_fatal( "xext support is needed to build compton-tde.\n Pass -DWITH_XEXT=ON to cmake arguments." )
+elseif( NOT WITH_XINERAMA )
+ tde_message_fatal( "xinerama support is needed to build compton-tde.\n Pass -DWITH_XEXT=ON to cmake arguments." )
+endif( )
+
+
+include_directories(
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### compton-tde (executable) ###################
+
+add_definitions("-Wall" "-std=c99")
+
+option(CONFIG_LIBCONFIG "Enable configuration file parsing using libconfig" ON)
+if (CONFIG_LIBCONFIG)
+ add_definitions("-DCONFIG_LIBCONFIG")
+endif ()
+
+option(CONFIG_VSYNC_DRM "Enable DRM VSync support" ON)
+if (CONFIG_VSYNC_DRM)
+ add_definitions("-DCONFIG_LIBCONFIG")
+endif ()
+
+option(CONFIG_VSYNC_OPENGL "Enable OpenGL support" ON)
+if (CONFIG_VSYNC_OPENGL)
+ add_definitions("-DCONFIG_VSYNC_OPENGL")
+ list(APPEND compton_SRCS src/opengl.c)
+endif ()
+
+option(CONFIG_XINERAMA "Enable additional Xinerama features" ON)
+if (CONFIG_XINERAMA)
+ add_definitions("-DCONFIG_XINERAMA")
+endif ()
+
+option(CONFIG_C2 "Enable matching system" ON)
+if (CONFIG_C2)
+ add_definitions("-DCONFIG_C2")
+ list(APPEND compton_SRCS src/c2.c)
+endif ()
+
+tde_add_executable( compton-tde
+ SOURCES c2.c compton.c opengl.c
+ LINK m GL config Xinerama ${XRENDER_LIBRARIES} ${XRANDR_LIBRARIES} ${XFIXES_LIBRARIES} ${XDAMAGE_LIBRARIES} ${XEXT_LIBRARIES} ${XCOMPOSITE_LIBRARIES}
+ DESTINATION ${BIN_INSTALL_DIR}
+)