From 494c562499483cf59ab1999f1799e35e0861ba6e Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 20 Aug 2024 12:45:40 +0200 Subject: [PATCH] Add reflect submodule --- .gitmodules | 3 +++ deps/CMakeLists.txt | 8 ++++++-- deps/reflect | 1 + src/emulator/CMakeLists.txt | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) create mode 160000 deps/reflect diff --git a/.gitmodules b/.gitmodules index bcc9c0dd..46f683ec 100644 --- a/.gitmodules +++ b/.gitmodules @@ -6,3 +6,6 @@ [submodule "deps/phnt"] path = deps/phnt url = https://github.com/winsiderss/phnt.git +[submodule "deps/reflect"] + path = deps/reflect + url = https://github.com/qlibs/reflect.git diff --git a/deps/CMakeLists.txt b/deps/CMakeLists.txt index 91fb3a62..c791919f 100644 --- a/deps/CMakeLists.txt +++ b/deps/CMakeLists.txt @@ -1,7 +1,11 @@ set(UNICORN_ARCH "x86" CACHE STRING "") -########################################## - add_subdirectory(unicorn) add_subdirectory(phnt) +########################################## + +add_library(reflect INTERFACE) +target_include_directories(reflect INTERFACE + "${CMAKE_CURRENT_LIST_DIR}/reflect" +) diff --git a/deps/reflect b/deps/reflect new file mode 160000 index 00000000..2129a1a5 --- /dev/null +++ b/deps/reflect @@ -0,0 +1 @@ +Subproject commit 2129a1a551434faf364dcaa0bfc86a8eaa210df1 diff --git a/src/emulator/CMakeLists.txt b/src/emulator/CMakeLists.txt index 2e84237a..15a6cc79 100644 --- a/src/emulator/CMakeLists.txt +++ b/src/emulator/CMakeLists.txt @@ -16,6 +16,7 @@ target_link_libraries(emulator PRIVATE common unicorn phnt::phnt + reflect ) set_property(GLOBAL PROPERTY VS_STARTUP_PROJECT emulator)