darling-security/CMakeLists.txt
2020-05-05 10:11:00 -07:00

44 lines
1.1 KiB
CMake

project(Security)
set(CMAKE_CXX_STANDARD 14)
add_compile_options(
-w
)
add_definitions(
-DNDEBUG=1
-D__KEYCHAINCORE__=1
-DOSSPINLOCK_USE_INLINED=0
-DDTRACE_PROBES_DISABLED
-nostdinc
)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/securityd/securityd_service/KeyStore
${CMAKE_CURRENT_SOURCE_DIR}/OSX/trustd
${CMAKE_CURRENT_SOURCE_DIR}/OSX/authd
${CMAKE_CURRENT_SOURCE_DIR}/OSX/security_dotmac_tp/lib
${CMAKE_CURRENT_SOURCE_DIR}/cssm
${CMAKE_CURRENT_SOURCE_DIR}/keychain
${CMAKE_CURRENT_SOURCE_DIR}/base
${CMAKE_CURRENT_SOURCE_DIR}/OSX/libsecurity_asn1
${CMAKE_CURRENT_SOURCE_DIR}/OSX/utilities
${CMAKE_CURRENT_SOURCE_DIR}/OSX/utilities/src
${CMAKE_CURRENT_SOURCE_DIR}/sectask
${CMAKE_CURRENT_SOURCE_DIR}/trust
${CMAKE_CURRENT_SOURCE_DIR}/internal-include
${CMAKE_CURRENT_SOURCE_DIR}/gen/include
${CMAKE_SOURCE_DIR}/src/frameworks/CryptoTokenKit/include/
${CMAKE_SOURCE_DIR}/src/frameworks/LocalAuthentication/include/
)
# Security.framework
add_subdirectory(OSX)
# securityd
add_subdirectory(securityd)
add_subdirectory(SecurityTool)
install(DIRECTORY DESTINATION libexec/darling/System/Library/Security)