mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
CMakeLists: Link bochs in privately where applicable
Everything that links in core doesn't need to see anything related to bochs, because it's only used internally. Anything else that relies on bochs should be linking it in explicitly.
This commit is contained in:
parent
75574b7b97
commit
f1be7cd4a0
@ -276,7 +276,6 @@ endif()
|
|||||||
target_link_libraries(core
|
target_link_libraries(core
|
||||||
PUBLIC
|
PUBLIC
|
||||||
audiocommon
|
audiocommon
|
||||||
bdisasm
|
|
||||||
common
|
common
|
||||||
cubeb
|
cubeb
|
||||||
discio
|
discio
|
||||||
@ -292,6 +291,7 @@ PUBLIC
|
|||||||
z
|
z
|
||||||
|
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
bdisasm
|
||||||
${LZO}
|
${LZO}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ add_executable(dolphin-emu
|
|||||||
|
|
||||||
target_link_libraries(dolphin-emu
|
target_link_libraries(dolphin-emu
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
bdisasm
|
||||||
core
|
core
|
||||||
uicommon
|
uicommon
|
||||||
cpp-optparse
|
cpp-optparse
|
||||||
|
@ -15,6 +15,7 @@ PUBLIC
|
|||||||
cpp-optparse
|
cpp-optparse
|
||||||
|
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
bdisasm
|
||||||
$<$<BOOL:APPLE>:${IOK_LIBRARY}>
|
$<$<BOOL:APPLE>:${IOK_LIBRARY}>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ macro(add_dolphin_test target)
|
|||||||
$<TARGET_OBJECTS:unittests_stubhost>
|
$<TARGET_OBJECTS:unittests_stubhost>
|
||||||
)
|
)
|
||||||
set_target_properties(${target} PROPERTIES FOLDER Tests)
|
set_target_properties(${target} PROPERTIES FOLDER Tests)
|
||||||
target_link_libraries(${target} core uicommon gtest_main)
|
target_link_libraries(${target} PRIVATE core uicommon gtest_main)
|
||||||
add_dependencies(unittests ${target})
|
add_dependencies(unittests ${target})
|
||||||
add_test(NAME ${target} COMMAND ${target})
|
add_test(NAME ${target} COMMAND ${target})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
@ -12,4 +12,6 @@ add_dolphin_test(NandPathsTest NandPathsTest.cpp)
|
|||||||
add_dolphin_test(SPSCQueueTest SPSCQueueTest.cpp)
|
add_dolphin_test(SPSCQueueTest SPSCQueueTest.cpp)
|
||||||
add_dolphin_test(StringUtilTest StringUtilTest.cpp)
|
add_dolphin_test(StringUtilTest StringUtilTest.cpp)
|
||||||
add_dolphin_test(SwapTest SwapTest.cpp)
|
add_dolphin_test(SwapTest SwapTest.cpp)
|
||||||
|
|
||||||
add_dolphin_test(x64EmitterTest x64EmitterTest.cpp)
|
add_dolphin_test(x64EmitterTest x64EmitterTest.cpp)
|
||||||
|
target_link_libraries(x64EmitterTest PRIVATE bdisasm)
|
||||||
|
Loading…
Reference in New Issue
Block a user