Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-flatbuffers
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-flatbuffers
Commits
79d3cb6a
Commit
79d3cb6a
authored
9 years ago
by
Martell Malone
Browse files
Options
Downloads
Patches
Plain Diff
Add a libflatbuffers for other projects to use
parent
f66e93cd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+14
-2
14 additions, 2 deletions
CMakeLists.txt
with
14 additions
and
2 deletions
CMakeLists.txt
+
14
−
2
View file @
79d3cb6a
...
@@ -6,6 +6,7 @@ project(FlatBuffers)
...
@@ -6,6 +6,7 @@ project(FlatBuffers)
option
(
FLATBUFFERS_CODE_COVERAGE
"Enable the code coverage build option."
OFF
)
option
(
FLATBUFFERS_CODE_COVERAGE
"Enable the code coverage build option."
OFF
)
option
(
FLATBUFFERS_BUILD_TESTS
"Enable the build of tests and samples."
ON
)
option
(
FLATBUFFERS_BUILD_TESTS
"Enable the build of tests and samples."
ON
)
option
(
FLATBUFFERS_INSTALL
"Enable the installation of targets."
ON
)
option
(
FLATBUFFERS_INSTALL
"Enable the installation of targets."
ON
)
option
(
FLATBUFFERS_BUILD_FLATLIB
"Enable the build of the flatbuffers library"
ON
)
option
(
FLATBUFFERS_BUILD_FLATC
"Enable the build of the flatbuffers compiler"
ON
)
option
(
FLATBUFFERS_BUILD_FLATC
"Enable the build of the flatbuffers compiler"
ON
)
option
(
FLATBUFFERS_BUILD_FLATHASH
"Enable the build of flathash"
ON
)
option
(
FLATBUFFERS_BUILD_FLATHASH
"Enable the build of flathash"
ON
)
...
@@ -15,7 +16,7 @@ if(NOT FLATBUFFERS_BUILD_FLATC AND FLATBUFFERS_BUILD_TESTS)
...
@@ -15,7 +16,7 @@ if(NOT FLATBUFFERS_BUILD_FLATC AND FLATBUFFERS_BUILD_TESTS)
set
(
FLATBUFFERS_BUILD_TESTS OFF
)
set
(
FLATBUFFERS_BUILD_TESTS OFF
)
endif
()
endif
()
set
(
FlatBuffers_
Compiler
_SRCS
set
(
FlatBuffers_
Library
_SRCS
include/flatbuffers/flatbuffers.h
include/flatbuffers/flatbuffers.h
include/flatbuffers/hash.h
include/flatbuffers/hash.h
include/flatbuffers/idl.h
include/flatbuffers/idl.h
...
@@ -23,11 +24,15 @@ set(FlatBuffers_Compiler_SRCS
...
@@ -23,11 +24,15 @@ set(FlatBuffers_Compiler_SRCS
include/flatbuffers/reflection.h
include/flatbuffers/reflection.h
include/flatbuffers/reflection_generated.h
include/flatbuffers/reflection_generated.h
src/idl_parser.cpp
src/idl_parser.cpp
src/idl_gen_text.cpp
)
set
(
FlatBuffers_Compiler_SRCS
${
FlatBuffers_Library_SRCS
}
src/idl_gen_cpp.cpp
src/idl_gen_cpp.cpp
src/idl_gen_general.cpp
src/idl_gen_general.cpp
src/idl_gen_go.cpp
src/idl_gen_go.cpp
src/idl_gen_python.cpp
src/idl_gen_python.cpp
src/idl_gen_text.cpp
src/idl_gen_fbs.cpp
src/idl_gen_fbs.cpp
src/flatc.cpp
src/flatc.cpp
)
)
...
@@ -97,6 +102,10 @@ endif()
...
@@ -97,6 +102,10 @@ endif()
include_directories
(
include
)
include_directories
(
include
)
if
(
FLATBUFFERS_BUILD_FLATLIB
)
add_library
(
flatbuffers STATIC
${
FlatBuffers_Library_SRCS
}
)
endif
()
if
(
FLATBUFFERS_BUILD_FLATC
)
if
(
FLATBUFFERS_BUILD_FLATC
)
add_executable
(
flatc
${
FlatBuffers_Compiler_SRCS
}
)
add_executable
(
flatc
${
FlatBuffers_Compiler_SRCS
}
)
endif
()
endif
()
...
@@ -136,6 +145,9 @@ endif()
...
@@ -136,6 +145,9 @@ endif()
if
(
FLATBUFFERS_INSTALL
)
if
(
FLATBUFFERS_INSTALL
)
install
(
DIRECTORY include/flatbuffers DESTINATION include
)
install
(
DIRECTORY include/flatbuffers DESTINATION include
)
if
(
FLATBUFFERS_BUILD_FLATLIB
)
install
(
TARGETS flatbuffers DESTINATION lib
)
endif
()
if
(
FLATBUFFERS_BUILD_FLATC
)
if
(
FLATBUFFERS_BUILD_FLATC
)
install
(
TARGETS flatc DESTINATION bin
)
install
(
TARGETS flatc DESTINATION bin
)
endif
()
endif
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment