-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using PUBLIC + BUILD_INTERFACE to express transitive deps
- Loading branch information
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
add_library(runtime SHARED runtime.c runtime_program.c) | ||
target_link_libraries(runtime PUBLIC api shady) | ||
target_link_libraries(runtime PRIVATE common driver) | ||
target_link_libraries(runtime PUBLIC shady) | ||
target_link_libraries(runtime PUBLIC "$<BUILD_INTERFACE:driver>") | ||
set_property(TARGET runtime PROPERTY POSITION_INDEPENDENT_CODE ON) | ||
set_target_properties(runtime PROPERTIES OUTPUT_NAME "shady_runtime") | ||
|
||
add_subdirectory(vulkan) | ||
|
||
add_executable(runtime_test runtime_test.c) | ||
target_link_libraries(runtime_test common shady runtime driver) | ||
target_link_libraries(runtime_test runtime) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters