-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
45 lines (45 loc) · 2.17 KB
/
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
#
# Modify the symbols below to provide the necessary information to access your email account and your scripts.
# Do NOT commit this file after alteration because you'll be storing that information into your repository.
#
cmake_minimum_required(VERSION 3.7)
project(imapControl)
set(PROJECT_VERSION "0.1")
# IMAP client information
set(IMAP_URL imap.server.com)
set(USER_INFO address@server.com:pw)
# SMTP Configuration
set(PROTOCOL "smtps:")
set(URL "smtp.server.com:465")
set(SOURCE_DESTINATION "address@server.com")
set(CREDENTIALS "address@server.com:pw")
# Command pattern (look for this pattern in an email message
set(COMMAND_PATTERN "\"COMMAND_STREAM .((( 0?x?[0-9,a-f,A-F]{2}\,?)){5,1024})\"")
set(DEBUG 0)
set(POLL_RATE 300)
set(MAX_EMAILS 5)
# Lock parameters, their corresponding names, and the executable paths to execute
set(LOCK_PARAMETERS "1807, 45289, 214326, 1807, 45289, 214326, 0")
set(LOCK_NAMES "\"lock1\", \"lock2\", 0")
set(START_PATHS "\"/home/pi/imapControl/dothisthing\", \"/home/pi/imapControl/dothatthing\", 0")
configure_file("src/imapControlConfig.h.in" "include/imapControlConfig.h")
configure_file("src/encodeTextConfig.h.in" "include/encodeTextConfig.h")
configure_file("src/decodeTextConfig.h.in" "include/decodeTextConfig.h")
configure_file("src/locksConfig.h.in" "include/locksConfig.h")
configure_file("src/sendCommandConfig.h.in" "include/sendCommandConfig.h")
configure_file("src/sendUtilConfig.h.in" "include/sendUtilConfig.h")
include_directories("${CMAKE_SOURCE_DIR}/include")
include_directories("${CMAKE_BINARY_DIR}/include")
file(GLOB SRC "src/*.cc")
set(IMAP_SRC src/lock.cc src/locks.cc src/decodeTextUtil.cc src/sendUtil.cc src/imapControl.cc)
set(ENC_SRC src/duplicateKeys src/lock.cc src/encodeTextUtil src/encodeText.cc)
set(DEC_SRC src/lock.cc src/decodeTextUtil src/decodeText.cc)
set(SCMD src/lock.cc src/duplicateKeys src/encodeTextUtil src/sendCommand.cc)
add_executable(imapControl ${IMAP_SRC})
add_executable(encodeText ${ENC_SRC})
add_executable(decodeText ${DEC_SRC})
add_executable(sendCommand ${SCMD})
target_link_libraries(imapControl curl)
target_link_libraries(encodeText)
target_link_libraries(decodeText)
target_link_libraries(sendCommand curl)