/
CMakeLists.txt
50 lines (37 loc) · 1009 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
42
43
44
45
46
#
# CMakeLists.txt
#
# Copyright (C) 2009-12 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.
#
#
project (PAM)
# include files
file(GLOB_RECURSE PAM_HEADER_FILES "*.h*")
# find PAM
find_package(PAM REQUIRED)
# source files
set(PAM_SOURCE_FILES
Pam.cpp
PamMain.cpp
)
# set include directories
include_directories(
${Boost_INCLUDE_DIRS}
${CORE_SOURCE_DIR}/include
${PAM_INCLUDE_DIR}
)
# define executable
add_executable(rserver-pam ${PAM_SOURCE_FILES} ${PAM_HEADER_FILES})
# set link dependencies
target_link_libraries(rserver-pam
rstudio-core
${PAM_LIBRARIES}
)
# installation rules
install(TARGETS rserver-pam DESTINATION ${RSTUDIO_INSTALL_BIN})