summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-10-06 17:16:49 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-10-06 19:11:30 +0200
commitb8927b8c9a6e48bb85f417ddde50069864c7f4ef (patch)
tree3bd550710b665b5a3d983773d9880565e06a60d5 /CMakeLists.txt
parenta65fd059f9450b350afad58cd37082245276cb1f (diff)
downloadmobilebling-b8927b8c9a6e48bb85f417ddde50069864c7f4ef.tar.gz
mobilebling-b8927b8c9a6e48bb85f417ddde50069864c7f4ef.tar.bz2
Generate compiz.pc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt45
1 files changed, 7 insertions, 38 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e49121..90d9009 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,6 +81,13 @@ file (APPEND ${_commonfile} "\n")
file (APPEND ${_commonfile} "#define COMPIZ_VERSION_STRING \"${VERSION}\"\n")
file (APPEND ${_commonfile} "#endif\n")
+generate_pkg_file (
+ ${CMAKE_SOURCE_DIR}/compiz.pc.in
+ ${CMAKE_BINARY_DIR}/compiz.pc
+ COMPIZ_REQUIRES
+ COMPIZ_CFLAGS
+)
+
add_subdirectory (src)
add_subdirectory (include)
add_subdirectory (images)
@@ -93,42 +100,4 @@ add_subdirectory (plugins)
_print_configure_results ()
-# AC_CONFIG_COMMANDS([include/compiz-common.h],
-# [
-# commonfile=include/compiz-common.h
-# outfile=$commonfile.tmp
-# AC_MSG_NOTICE([creating $commonfile])
-# cat > $outfile <<_EOF
-# #ifndef COMPIZ_COMMON_H
-# #define COMPIZ_COMMON_H
-#
-# #ifdef __cplusplus
-# # define COMPIZ_BEGIN_DECLS extern "C" {
-# # define COMPIZ_END_DECLS }
-# #else
-# # define COMPIZ_BEGIN_DECLS
-# # define COMPIZ_END_DECLS
-# #endif
-#
-# #define COMPIZ_VERSION_MAJOR $COMPIZ_VERSION_MAJOR
-# #define COMPIZ_VERSION_MINOR $COMPIZ_VERSION_MINOR
-# #define COMPIZ_VERSION_MICRO $COMPIZ_VERSION_MICRO
-#
-# #define COMPIZ_VERSION_STRING "$COMPIZ_VERSION_MAJOR.$COMPIZ_VERSION_MINOR.$COMPIZ_VERSION_MICRO"
-#
-# _EOF
-# echo '#endif' >> $outfile
-#
-# if cmp -s $outfile $commonfile; then
-# AC_MSG_NOTICE([$commonfile is unchanged])
-# rm -f $outfile
-# else
-# mv $outfile $commonfile
-# fi
-# ],[
-# COMPIZ_VERSION_MAJOR=$COMPIZ_VERSION_MAJOR
-# COMPIZ_VERSION_MINOR=$COMPIZ_VERSION_MINOR
-# COMPIZ_VERSION_MICRO=$COMPIZ_VERSION_MICRO
-# ])
-#