forked from rstudio/rstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (29 loc) · 915 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# CMakeLists.txt
#
# Copyright (C) 2009-11 by RStudio, Inc.
#
# This program is licensed to you under the terms of version 3 of the
# GNU Affero General Public License. This program is distributed WITHOUT
# ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
# AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
#
#
cmake_minimum_required(VERSION 2.6)
project (RStudio)
# project globals
include(CMakeGlobals.txt)
# remove previous installation if requested
if(RSTUDIO_UNINSTALL_PREVIOUS)
install(CODE "execute_process(COMMAND rm -rf \${CMAKE_INSTALL_PREFIX})")
endif()
# install root docs
if (NOT RSTUDIO_SESSION_WIN64)
install(FILES COPYING NOTICE
DESTINATION ${RSTUDIO_INSTALL_SUPPORTING})
endif()
# main src
add_subdirectory(src)
# packaging
add_subdirectory(package)