Skip to content

Commit

Permalink
Added simple cmake file (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
xfoukas authored Dec 10, 2024
1 parent c0140d7 commit 78122a9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
cmake_minimum_required(VERSION 3.16)

project(jbpf-protobuf)
include(ExternalProject)

add_definitions(-DPB_FIELD_32BIT)

execute_process(
COMMAND bash ./init_submodules.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE error
)

add_subdirectory(jbpf)

if (NOT PROJECT_IS_TOP_LEVEL)
######## Export header files for other projects ############
set(JBPF_IO_HEADER_FILES ${JBPF_IO_HEADER_FILES} PARENT_SCOPE)
set(JBPF_MEM_MGMT_HEADER_FILES ${JBPF_MEM_MGMT_HEADER_FILES} PARENT_SCOPE)
set(JBPF_LIB_HEADER_FILES ${JBPF_LIB_HEADER_FILES} PARENT_SCOPE)
set(JBPF_CK_HEADER_FILES ${JBPF_CK_INCLUDES} PARENT_SCOPE)
set(JBPF_COMMON_HEADERS ${JBPF_COMMON_HEADERS} PARENT_SCOPE)
set(JBPF_LCM_IPC_HEADER_FILES ${JBPF_LCM_IPC_HEADER_FILES} PARENT_SCOPE)
endif()
2 changes: 1 addition & 1 deletion jbpf
Submodule jbpf updated 2 files
+4 −1 README.md
+3 −1 docs/serde.md

0 comments on commit 78122a9

Please sign in to comment.