darling-SmartCardServices/CMakeLists.txt

67 lines
1.3 KiB
CMake

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)