mirror of
https://github.com/apple/swift-numerics
synced 2026-11-24 04:38:11 +00:00
This adds a CMake based build, which enables the build of swift-numerics on Windows. This currently does not add the test suite to the build as there are still some issues to work out in building the full test suite which require additional math operations to fully build.
22 lines
632 B
CMake
22 lines
632 B
CMake
#[[
|
|
This source file is part of the Swift Numerics open source project
|
|
|
|
Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
|
|
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
|
See https://swift.org/LICENSE.txt for license information
|
|
#]]
|
|
|
|
add_library(ComplexModule
|
|
Arithmetic.swift
|
|
Complex.swift
|
|
Differentiable.swift)
|
|
set_target_properties(ComplexModule PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
target_link_libraries(ComplexModule PUBLIC
|
|
RealModule)
|
|
|
|
|
|
_install_target(ComplexModule)
|
|
set_property(GLOBAL APPEND PROPERTY SWIFT_NUMERICS_EXPORTS ComplexModule)
|