summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2013-09-08 22:51:43 +0100
committerRoger Leigh <rleigh@debian.org>2013-09-29 16:45:34 +0100
commit4a272b256ea0cae74cad442eca75363e9d8edb47 (patch)
tree1450526d5688bb52b058db50634cfef0a1f53624 /libexec
parentf71acb7a31d7932cf3d5f8aaa1682787c18b2127 (diff)
downloadschroot-4a272b256ea0cae74cad442eca75363e9d8edb47.tar.gz
build: Add cmake build infrastructure
This permits building using cmake rather than the existing autoconf/automake/libtool infrastructure. The autotools- based build may be removed in future commits, but either may be used until that point.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/listmounts/CMakeLists.txt30
-rw-r--r--libexec/mount/CMakeLists.txt32
2 files changed, 62 insertions, 0 deletions
diff --git a/libexec/listmounts/CMakeLists.txt b/libexec/listmounts/CMakeLists.txt
new file mode 100644
index 00000000..53d2e497
--- /dev/null
+++ b/libexec/listmounts/CMakeLists.txt
@@ -0,0 +1,30 @@
+# Copyright © 2004-2013 Roger Leigh <rleigh@debian.org>
+#
+# schroot is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# schroot is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
+#
+#####################################################################
+
+set(listmounts_sources
+ main.h
+ main.cc
+ options.h
+ options.cc
+ listmounts.cc)
+
+add_executable(listmounts ${listmounts_sources})
+target_link_libraries(listmounts sbuild bin-common)
+
+install(TARGETS listmounts RUNTIME
+ DESTINATION ${SCHROOT_LIBEXEC_DIR})
diff --git a/libexec/mount/CMakeLists.txt b/libexec/mount/CMakeLists.txt
new file mode 100644
index 00000000..a670ea47
--- /dev/null
+++ b/libexec/mount/CMakeLists.txt
@@ -0,0 +1,32 @@
+# Copyright © 2004-2013 Roger Leigh <rleigh@debian.org>
+#
+# schroot is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# schroot is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see
+# <http://www.gnu.org/licenses/>.
+#
+#####################################################################
+
+set(mount_sources
+ main.h
+ main.cc
+ options.h
+ options.cc
+ mount.cc)
+
+add_executable(mount ${mount_sources})
+target_link_libraries(mount sbuild bin-common
+ ${Boost_FILESYSTEM_LIBRARY_RELEASE}
+ ${Boost_SYSTEM_LIBRARY_RELEASE})
+
+install(TARGETS mount RUNTIME
+ DESTINATION ${SCHROOT_LIBEXEC_DIR})