-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (27 loc) · 1.07 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
project(MailPunk)
cmake_minimum_required(VERSION 3.10)
include(ExternalProject)
link_directories(MailPunk ${MailPunk_BINARY_DIR}/deps/lib)
add_executable(MailPunk MailPunk.cpp imap.cpp UI.cpp)
set_property(TARGET MailPunk PROPERTY CXX_STANDARD 17)
ExternalProject_Add(libfinal
URL "https://github.com/gansm/finalcut/archive/0.5.0.tar.gz"
PATCH_COMMAND "./autogen.sh"
CONFIGURE_COMMAND "./configure" --prefix ${MailPunk_BINARY_DIR}/deps
BUILD_COMMAND "make" COMMAND make install
BUILD_IN_SOURCE TRUE
BUILD_ALWAYS FALSE
)
ExternalProject_Add(libetpan
URL "https://github.com/dinhviethoa/libetpan/archive/1.9.1.tar.gz"
PATCH_COMMAND "./autogen.sh"
CONFIGURE_COMMAND "./configure" --prefix ${MailPunk_BINARY_DIR}/deps
BUILD_COMMAND "make" COMMAND make install
BUILD_IN_SOURCE TRUE
BUILD_ALWAYS FALSE
)
target_include_directories(MailPunk SYSTEM PUBLIC ${MailPunk_BINARY_DIR}/deps/include)
add_dependencies(MailPunk libetpan)
target_link_libraries(MailPunk etpan)
add_dependencies(MailPunk libfinal)
target_link_libraries(MailPunk final)