Skip to content

Commit

Permalink
Fix CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Jul 24, 2024
1 parent 21766bc commit 784f0bf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Support/Sources/COM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file(GLOB_RECURSE SOURCES *.swift)
add_library(COM STATIC ${SOURCES})
target_link_libraries(COM PRIVATE COM_ABI)
target_link_libraries(COM PRIVATE WindowsRuntime_ABI SWRT_InternalABI)
5 changes: 2 additions & 3 deletions Support/Sources/ExportedABI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
file(GLOB SOURCES *.c)
add_library(SWRT_Core INTERFACE)
target_include_directories(SWRT_Core PUBLIC include)
add_library(WindowsRuntime_ABI INTERFACE)
target_include_directories(WindowsRuntime_ABI INTERFACE include)
6 changes: 3 additions & 3 deletions Support/Sources/InternalABI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
file(GLOB SOURCES *.c)
add_library(SWRT_CoreInterop STATIC ${SOURCES})
target_include_directories(SWRT_CoreInterop PUBLIC include)
target_link_libraries(SWRT_CoreInterop PUBLIC SWRT_Core)
add_library(SWRT_InternalABI STATIC ${SOURCES})
target_include_directories(SWRT_InternalABI PUBLIC include)
target_link_libraries(SWRT_InternalABI PUBLIC WindowsRuntime_ABI)
2 changes: 1 addition & 1 deletion Support/Sources/WindowsRuntime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
file(GLOB_RECURSE SOURCES *.swift)
add_library(WindowsRuntime STATIC ${SOURCES})
target_link_libraries(WindowsRuntime PRIVATE COM WindowsRuntime_ABI WindowsFoundation_ABI)
target_link_libraries(WindowsRuntime PRIVATE COM WindowsRuntime_ABI SWRT_InternalABI)

0 comments on commit 784f0bf

Please sign in to comment.