-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
66 lines (55 loc) · 1.27 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
project(SmartCardServices)
remove_sdk_framework(PCSC)
add_compile_options(
-nostdinc
-fblocks
-Wno-gcc-compat
)
add_compile_definitions(
PCSC_DEBUG=1
USE_SYSLOG=1
USE_DAEMON=1
PRIVATE
)
include_directories(BEFORE
${CMAKE_CURRENT_SOURCE_DIR}/src/PCSC
${CMAKE_CURRENT_SOURCE_DIR}/darling/submodules/security/darling/include/macOS
#${CMAKE_SOURCE_DIR}/src/external/libcxx/include
)
set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "1.0.0")
set(FRAMEWORK_PCSC_VERSION "A")
generate_sdk_framework(PCSC
VERSION ${FRAMEWORK_PCSC_VERSION}
HEADER "darling/include/PCSC"
)
add_framework(PCSC
FAT
CURRENT_VERSION
VERSION ${FRAMEWORK_PCSC_VERSION}
SOURCES
src/PCSC/readerstate.cpp
src/PCSC/thread_macosx.c
src/PCSC/musclecard.c
src/PCSC/dyn_macosx.c
src/PCSC/winscard_msg.cpp
src/PCSC/tokenfactory.c
src/PCSC/sys_unix.c
src/PCSC/tokenparser.c
src/PCSC/winscard_clnt.c
src/PCSC/debug.c
src/PCSC/error.c
src/PCSC/pcscd_reader.cpp
src/PCSC/readerfactory.c
src/PCSC/atrhandler.c
src/PCSC/configfile.c
src/PCSC/eventhandler.cpp
src/PCSC/ifdwrapper.c
DEPENDENCIES
system
CoreFoundation
security_utilities
Security
cxx
)
set_source_files_properties(src/PCSC/tokenparser.c APPEND_STRING PROPERTIES COMPILE_DEFINIONS -DYY_NO_UNPUT)