diff options
author | Garrett Brown <themagnificentmrb@gmail.com> | 2018-06-26 14:20:28 -0700 |
---|---|---|
committer | Garrett Brown <themagnificentmrb@gmail.com> | 2018-08-14 11:29:14 -0700 |
commit | cd50c4f4219773548d839a94feaf57d8c6dff3b9 (patch) | |
tree | 10a29d46229451f02c669b902c09784ead78ae11 /CMakeLists.txt | |
parent | 4abbd40cdf9e84dab4795bbca1abc56284c1413f (diff) |
tools/depends: Add FlatBuffers v1.9.0 compiler and headers
This adds the flatc compiler to native depends and the flatbuffer headers
to target depends.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e35189a24..9cd6541bb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,7 @@ if(UNIX) option(ENABLE_INTERNAL_RapidJSON "Enable internal rapidjson?" OFF) option(ENABLE_INTERNAL_FMT "Enable internal fmt?" OFF) option(ENABLE_INTERNAL_FSTRCMP "Enable internal fstrcmp?" OFF) + option(ENABLE_INTERNAL_FLATBUFFERS "Enable internal flatbuffers?" OFF) endif() # System options if(NOT WIN32) @@ -116,6 +117,7 @@ set(required_deps ASS CrossGUID Curl FFMPEG + FlatBuffers Fmt FreeType FriBidi @@ -241,6 +243,9 @@ if(WIN32) set(RESOURCES $<TARGET_OBJECTS:resources>) endif() +# Generate messages +core_add_subdirs_from_filelist(${CMAKE_SOURCE_DIR}/cmake/messages/flatbuffers/*.txt) + include_directories(${INCLUDES} ${SYSTEM_INCLUDES}) add_compile_options(${ARCH_DEFINES} "${SYSTEM_DEFINES}" ${DEP_DEFINES} ${PATH_DEFINES}) @@ -286,7 +291,7 @@ endif() # main library (used for main binary and tests) add_library(lib${APP_NAME_LC} STATIC $<TARGET_OBJECTS:compileinfo>) -add_dependencies(lib${APP_NAME_LC} libcpluff ffmpeg dvdnav crossguid fmt fstrcmp ${PLATFORM_GLOBAL_TARGET_DEPS}) +add_dependencies(lib${APP_NAME_LC} libcpluff ffmpeg dvdnav crossguid fmt fstrcmp flatbuffers ${PLATFORM_GLOBAL_TARGET_DEPS}) set_target_properties(lib${APP_NAME_LC} PROPERTIES PREFIX "") # Other files (IDE) |