1 cmake_minimum_required(VERSION 3.22.1) 2 project(shared_backend) 3 4 set(CMAKE_CXX_STANDARD 14) 5 6 message("SHARED_BACKEND") 7 if ("${SHARED_BACKEND}EMPTY" STREQUAL "EMPTY") 8 set (SHARED_BACKEND "${CMAKE_SOURCE_DIR}/../shared") 9 message("SHARED_BACKEND=${SHARED_BACKEND}") 10 endif() 11 12 include_directories( 13 ${SHARED_BACKEND}/src/main/native/include 14 ) 15 16 add_library(shared_backend SHARED 17 ${SHARED_BACKEND}/src/main/native/cpp/shared.cpp 18 ${SHARED_BACKEND}/src/main/native/include/shared.h 19 ${SHARED_BACKEND}/src/main/native/cpp/buffer.cpp 20 ${SHARED_BACKEND}/src/main/native/include/buffer.h 21 ${SHARED_BACKEND}/src/main/native/cpp/schema_cursor.cpp 22 ${SHARED_BACKEND}/src/main/native/include/schema_cursor.h 23 ${SHARED_BACKEND}/src/main/native/cpp/buffer_cursor.cpp 24 ${SHARED_BACKEND}/src/main/native/include/buffer_cursor.h 25 ${SHARED_BACKEND}/src/main/native/cpp/hex.cpp 26 ${SHARED_BACKEND}/src/main/native/include/hex.h 27 ${SHARED_BACKEND}/src/main/native/cpp/json.cpp 28 ${SHARED_BACKEND}/src/main/native/include/json.h 29 ${SHARED_BACKEND}/src/main/native/cpp/fsutil.cpp 30 ${SHARED_BACKEND}/src/main/native/include/fsutil.h 31 ${SHARED_BACKEND}/src/main/native/cpp/strutil.cpp 32 ${SHARED_BACKEND}/src/main/native/include/strutil.h 33 ${SHARED_BACKEND}/src/main/native/include/config.h 34 ) 35 36 add_executable(schemadump 37 ${SHARED_BACKEND}/src/main/native/cpp/schema.cpp 38 ${SHARED_BACKEND}/src/main/native/cpp/schemadump.cpp 39 ${SHARED_BACKEND}/src/main/native/cpp/schema_cursor.cpp 40 ${SHARED_BACKEND}/src/main/native/include/schema_cursor.h 41 ${SHARED_BACKEND}/src/main/native/include/schema.h 42 )