cmake/Tests/RunCMake/Swift/SwiftLibraryModuleCommand.cmake

14 lines
371 B
CMake
Raw Normal View History

2024-04-14 22:45:38 +02:00
if(POLICY CMP0157)
cmake_policy(SET CMP0157 NEW)
endif()
enable_language(Swift)
add_library(StaticLibrary STATIC L.swift)
add_library(DynamicLibrary SHARED L.swift)
2024-08-02 22:14:20 +02:00
set_target_properties(DynamicLibrary PROPERTIES INSTALL_NAME_DIR "@rpath")
2024-04-14 22:45:38 +02:00
add_executable(Executable E.swift)
add_dependencies(DynamicLibrary StaticLibrary)
add_dependencies(Executable DynamicLibrary)