mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-22 05:03:56 +00:00
renamed dependency 'common' to emulator-common
also made it mandatory when using the 'windows-emulator' dep
This commit is contained in:
@@ -13,7 +13,6 @@ momo_assign_source_group(${SRC_FILES})
|
||||
target_precompile_headers(analyzer PRIVATE std_include.hpp)
|
||||
|
||||
target_link_libraries(analyzer PRIVATE
|
||||
common
|
||||
reflect
|
||||
windows-emulator
|
||||
)
|
||||
|
||||
@@ -7,6 +7,6 @@ file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS
|
||||
list(SORT SRC_FILES)
|
||||
|
||||
add_executable(bad-sample ${SRC_FILES})
|
||||
target_link_libraries(bad-sample PRIVATE common)
|
||||
target_link_libraries(bad-sample PRIVATE emulator-common)
|
||||
|
||||
momo_assign_source_group(${SRC_FILES})
|
||||
|
||||
@@ -3,14 +3,14 @@ file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS
|
||||
*.hpp
|
||||
)
|
||||
|
||||
add_library(common ${SRC_FILES})
|
||||
add_library(emulator-common ${SRC_FILES})
|
||||
|
||||
momo_assign_source_group(${SRC_FILES})
|
||||
|
||||
target_include_directories(common INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
|
||||
target_include_directories(emulator-common INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
|
||||
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(common PUBLIC
|
||||
target_link_libraries(emulator-common PUBLIC
|
||||
Threads::Threads
|
||||
)
|
||||
|
||||
@@ -13,7 +13,6 @@ momo_assign_source_group(${SRC_FILES})
|
||||
target_precompile_headers(fuzzer PRIVATE std_include.hpp)
|
||||
|
||||
target_link_libraries(fuzzer PRIVATE
|
||||
common
|
||||
fuzzing-engine
|
||||
windows-emulator
|
||||
)
|
||||
|
||||
@@ -11,7 +11,7 @@ add_library(fuzzing-engine ${SRC_FILES})
|
||||
momo_assign_source_group(${SRC_FILES})
|
||||
|
||||
target_link_libraries(fuzzing-engine PRIVATE
|
||||
common
|
||||
emulator-common
|
||||
)
|
||||
|
||||
target_include_directories(fuzzing-engine INTERFACE
|
||||
|
||||
@@ -17,4 +17,4 @@ target_include_directories(unicorn-emulator INTERFACE
|
||||
)
|
||||
|
||||
target_link_libraries(unicorn-emulator PUBLIC emulator)
|
||||
target_link_libraries(unicorn-emulator PRIVATE unicorn common)
|
||||
target_link_libraries(unicorn-emulator PRIVATE unicorn emulator-common)
|
||||
|
||||
@@ -12,7 +12,6 @@ momo_assign_source_group(${SRC_FILES})
|
||||
|
||||
target_link_libraries(windows-emulator-test PRIVATE
|
||||
gtest
|
||||
common
|
||||
windows-emulator
|
||||
)
|
||||
|
||||
|
||||
@@ -13,12 +13,12 @@ momo_assign_source_group(${SRC_FILES})
|
||||
target_precompile_headers(windows-emulator PRIVATE std_include.hpp)
|
||||
|
||||
target_link_libraries(windows-emulator PRIVATE
|
||||
common
|
||||
unicorn-emulator
|
||||
mini-gdbstub
|
||||
)
|
||||
|
||||
target_link_libraries(windows-emulator PUBLIC
|
||||
emulator-common
|
||||
emulator
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user