system/CMakeLists.txt: group common private dependencies into var

This commit is contained in:
Xavier Del Campo Romero 2022-07-23 04:12:29 +02:00
parent 79c0164c21
commit c37cd892a0
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
set(inc "inc")
set(privdeps gfx sfx)
if(PS1_BUILD)
set(src "ps1/src/init.c")
@ -10,4 +11,4 @@ endif()
add_library(system ${src})
target_include_directories(system PUBLIC ${inc})
target_link_libraries(system PRIVATE gfx sfx)
target_link_libraries(system PRIVATE ${privdeps})