blob: 858d796d6c00096bcc09f1df39345ab719b9d025 (
plain)
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
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
include(public-headers)
include(core)
include(async)
include(objc)
include(LibFindMacros)
IF(APPLE)
execute_process(COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/../scripts/get-mac.sh"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/../scripts")
ENDIF()
file(GLOB_RECURSE
source_files
*.h
*.m
*.c
)
SET_SOURCE_FILES_PROPERTIES(
${source_files}
PROPERTIES LANGUAGE C
)
file(COPY
${public_headers}
DESTINATION
"${CMAKE_CURRENT_BINARY_DIR}/include/MailCore"
)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/include"
${async_includes}
${core_includes}
${objc_includes}
${additional_includes}
${GLIB2_INCLUDE_DIRS}
)
add_library(MailCore
${core_files}
${async_files}
${objc_files}
)
|