add_subdirectory(common)
add_subdirectory(emulator)
add_subdirectory(gdb-stub)
add_subdirectory(windows-emulator)
add_subdirectory(windows-gdb-stub)
add_subdirectory(backend-selection)

momo_add_subdirectory_and_get_targets("backends" BACKEND_TARGETS)
momo_targets_set_folder("backends" ${BACKEND_TARGETS})

if (NOT SOGEN_BUILD_STATIC)
    add_subdirectory(analyzer)
    add_subdirectory(debugger)
    add_subdirectory(fuzzing-engine)
    add_subdirectory(fuzzer)
    add_subdirectory(windows-emulator-test)
    if(WIN32 AND CMAKE_SIZEOF_VOID_P EQUAL 8)
        momo_add_subdirectory_and_get_targets("tools" TOOL_TARGETS)
        momo_targets_set_folder("tools" ${TOOL_TARGETS})

        momo_add_subdirectory_and_get_targets("samples" SAMPLE_TARGETS)
        momo_targets_set_folder("samples" ${SAMPLE_TARGETS})
    endif()
endif()
