Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cmake] Added GENERATE_<TARGET> to flatbuffers_generate_headers #7845

Commits on Mar 1, 2023

  1. Added GENERATE_<TARGET> to flatbuffers_generate_headers

    The generation of the library interface supplied by this function only
    works within the same directory as that the target was defined. By
    adding a custom target named GENERATE_<TARGET> now also interface files
    will be generated by making a target dependend on the generate target.
    
    Example:
    /CMakeLists.txt
      set(MY_INCL_SRC ${CMAKE_CURRENT_SOURCE_DIR}/fbs/my_incl.fbs)
      flatbuffers_generate_headers(TARGET my_incl
                                   SCHEMAS ${MY_INCL_SRC})
    
      add_subdirectory(app)
    
    /app/CMakeLists.txt
      add_executable(app src/test.cpp)
      target_link_libraries(app my_incl)
      add_dependencies(app GENERATE_my_incl)
    CedricSchmeits committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    303d6c9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9261f59 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Configuration menu
    Copy the full SHA
    dc3e1bb View commit details
    Browse the repository at this point in the history