summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2010-10-15 22:12:28 +0400
committerDmitry Kozlov <xeb@mail.ru>2010-10-17 19:19:45 +0400
commitab92d89ca62f3a9e63ae4f8731efcdbd1d0a7202 (patch)
treed0071d27489056e4beea5e289e28d1d57dc516f1 /CMakeLists.txt
parentd32cf13525153b9bb961a72cded215e9866e78bd (diff)
downloadaccel-ppp-ab92d89ca62f3a9e63ae4f8731efcdbd1d0a7202.tar.gz
accel-ppp-ab92d89ca62f3a9e63ae4f8731efcdbd1d0a7202.zip
added cpack interface to generate deb packages
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 9 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ee7017f9..5468f0fd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,13 @@
PROJECT (accel-pptpd C)
cmake_minimum_required(VERSION 2.6)
-ADD_SUBDIRECTORY(accel-pptpd)
+include(cmake/cpack.cmake)
+
+if (NOT BUILD_DRIVER_ONLY)
+ ADD_SUBDIRECTORY(accel-pptpd)
+endif (NOT BUILD_DRIVER_ONLY)
+
+if (BUILD_DRIVER OR BUILD_DRIVER_ONLY)
+ ADD_SUBDIRECTORY(driver)
+endif (BUILD_DRIVER OR BUILD_DRIVER_ONLY)
-if (BUILD_DRIVER)
- ADD_SUBDIRECTORY(driver)
-endif (BUILD_DRIVER)