mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 19:23:56 +00:00
26 lines
692 B
CMake
26 lines
692 B
CMake
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS
|
|
*.cpp
|
|
*.hpp
|
|
*.rc
|
|
)
|
|
|
|
list(SORT SRC_FILES)
|
|
|
|
add_library(debugger ${SRC_FILES})
|
|
|
|
momo_assign_source_group(${SRC_FILES})
|
|
|
|
target_link_libraries(debugger PRIVATE
|
|
windows-emulator
|
|
flatbuffers
|
|
base64
|
|
)
|
|
|
|
target_include_directories(debugger INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
|
|
|
|
add_custom_target(generate-flatbuffer
|
|
DEPENDS flatc
|
|
COMMAND "$<TARGET_FILE:flatc>" --gen-mutable --gen-object-api --filename-ext hxx --cpp -o "${CMAKE_CURRENT_LIST_DIR}" "${CMAKE_CURRENT_LIST_DIR}/events.fbs"
|
|
COMMAND "$<TARGET_FILE:flatc>" --gen-mutable --gen-object-api --ts -o "${PROJECT_SOURCE_DIR}/page/src/fb" "${CMAKE_CURRENT_LIST_DIR}/events.fbs"
|
|
)
|