Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
79d3cb6a
Commit
79d3cb6a
authored
Jul 22, 2015
by
Martell Malone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a libflatbuffers for other projects to use
parent
f66e93cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
CMakeLists.txt
CMakeLists.txt
+14
-2
No files found.
CMakeLists.txt
View file @
79d3cb6a
...
...
@@ -6,6 +6,7 @@ project(FlatBuffers)
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_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_FLATHASH
"Enable the build of flathash"
ON
)
...
...
@@ -15,7 +16,7 @@ if(NOT FLATBUFFERS_BUILD_FLATC AND FLATBUFFERS_BUILD_TESTS)
set
(
FLATBUFFERS_BUILD_TESTS OFF
)
endif
()
set
(
FlatBuffers_
Compiler
_SRCS
set
(
FlatBuffers_
Library
_SRCS
include/flatbuffers/flatbuffers.h
include/flatbuffers/hash.h
include/flatbuffers/idl.h
...
...
@@ -23,11 +24,15 @@ set(FlatBuffers_Compiler_SRCS
include/flatbuffers/reflection.h
include/flatbuffers/reflection_generated.h
src/idl_parser.cpp
src/idl_gen_text.cpp
)
set
(
FlatBuffers_Compiler_SRCS
${
FlatBuffers_Library_SRCS
}
src/idl_gen_cpp.cpp
src/idl_gen_general.cpp
src/idl_gen_go.cpp
src/idl_gen_python.cpp
src/idl_gen_text.cpp
src/idl_gen_fbs.cpp
src/flatc.cpp
)
...
...
@@ -97,6 +102,10 @@ endif()
include_directories
(
include
)
if
(
FLATBUFFERS_BUILD_FLATLIB
)
add_library
(
flatbuffers STATIC
${
FlatBuffers_Library_SRCS
}
)
endif
()
if
(
FLATBUFFERS_BUILD_FLATC
)
add_executable
(
flatc
${
FlatBuffers_Compiler_SRCS
}
)
endif
()
...
...
@@ -136,6 +145,9 @@ endif()
if
(
FLATBUFFERS_INSTALL
)
install
(
DIRECTORY include/flatbuffers DESTINATION include
)
if
(
FLATBUFFERS_BUILD_FLATLIB
)
install
(
TARGETS flatbuffers DESTINATION lib
)
endif
()
if
(
FLATBUFFERS_BUILD_FLATC
)
install
(
TARGETS flatc DESTINATION bin
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment