blob: 1660df318157154333fde29a95807d5984a91d97 (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# -*- cmake -*-
include(00-Common)
include(libgpg-error)
include(Linking)
if (WINDOWS)
project(gpg-error)
include_directories(
../gpg.vs/inc.vs
../gpg.vs/libgpg-error-1.1.vs/custom
libgpg-error-1.0/src
)
set(gpg-error_SOURCE_FILES
libgpg-error-1.0/src/code-from-errno.c
libgpg-error-1.0/src/code-to-errno.c
libgpg-error-1.0/src/gpg-error.c
libgpg-error-1.0/src/mkerrcodes.c
libgpg-error-1.0/src/strerror-sym.c
libgpg-error-1.0/src/strerror.c
libgpg-error-1.0/src/strsource-sym.c
libgpg-error-1.0/src/strsource.c
)
set(gpg-error_HEADER_FILES
CMakeLists.txt
libgpg-error-1.0/src/err-codes.h
libgpg-error-1.0/src/err-sources.h
libgpg-error-1.0/src/gettext.h
libgpg-error-1.0/src/gpg-error.h
)
set_source_files_properties(${gpg-error_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE)
list(APPEND gpg-error_SOURCE_FILES ${gpg-error_HEADER_FILES})
add_library (gpg-error ${gpg-error_SOURCE_FILES})
target_link_libraries(
gpg-error
)
else (WINDOWS)
include(ExternalProject)
# Gotta fake a DOWNLOAD_COMMAND to work around a bug in cmake before 2.8.3.
externalproject_add(gpg-error
DOWNLOAD_COMMAND ""
PREFIX ${CMAKE_BINARY_DIR}/libgpg-error
SOURCE_DIR ${CMAKE_SOURCE_DIR}/libgpg-error/libgpg-error-1.0
CONFIGURE_COMMAND <SOURCE_DIR>/configure -prefix=<INSTALL_DIR>
INSTALL_COMMAND make install
)
endif (WINDOWS)
|