summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-12-16 21:42:38 +0100
committerDennis Kasprzyk <onestone@compiz-fusion.org>2008-12-16 21:42:38 +0100
commitd07535262054cf3e0043114b60a428f795bd103b (patch)
tree002f2c3e4c2f7e76685ad06de4c16f1783df3b96 /CMakeLists.txt
parentca90f28d2c7d23712865ecda2c0e58ec198f615c (diff)
downloadmobilebling-d07535262054cf3e0043114b60a428f795bd103b.tar.gz
mobilebling-d07535262054cf3e0043114b60a428f795bd103b.tar.bz2
Install compiz-common.h
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 6 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 93f595a..5b862bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,14 +71,6 @@ set (_commonfile "${CMAKE_BINARY_DIR}/compiz-common.h")
file (WRITE ${_commonfile} "#ifndef COMPIZ_COMMON_H\n")
file (APPEND ${_commonfile} "#define COMPIZ_COMMON_H\n")
file (APPEND ${_commonfile} "\n")
-file (APPEND ${_commonfile} "#ifdef __cplusplus\n")
-file (APPEND ${_commonfile} "# define COMPIZ_BEGIN_DECLS extern \"C\" {\n")
-file (APPEND ${_commonfile} "# define COMPIZ_END_DECLS }\n")
-file (APPEND ${_commonfile} "#else\n")
-file (APPEND ${_commonfile} "# define COMPIZ_BEGIN_DECLS\n")
-file (APPEND ${_commonfile} "# define COMPIZ_END_DECLS\n")
-file (APPEND ${_commonfile} "#endif\n")
-file (APPEND ${_commonfile} "\n")
file (APPEND ${_commonfile} "#define COMPIZ_VERSION_MAJOR ${COMPIZ_VERSION_MAJOR}\n")
file (APPEND ${_commonfile} "#define COMPIZ_VERSION_MINOR ${COMPIZ_VERSION_MINOR}\n")
file (APPEND ${_commonfile} "#define COMPIZ_VERSION_MICRO ${COMPIZ_VERSION_MICRO}\n")
@@ -86,6 +78,12 @@ file (APPEND ${_commonfile} "\n")
file (APPEND ${_commonfile} "#define COMPIZ_VERSION_STRING \"${VERSION}\"\n")
file (APPEND ${_commonfile} "#endif\n")
+install (
+ FILES ${_commonfile}
+ DESTINATION ${includedir}/compiz
+)
+
+
generate_pkg_file (
${CMAKE_SOURCE_DIR}/compiz.pc.in
${CMAKE_BINARY_DIR}/compiz.pc