Skip to content

Commit

Permalink
Embed libjsonparser
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Platone committed Mar 3, 2022
1 parent 79dfed8 commit b5abae2
Show file tree
Hide file tree
Showing 7 changed files with 1,294 additions and 69 deletions.
12 changes: 4 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ find_package(JPEG REQUIRED)
find_package(FFTW3 REQUIRED)
find_package(Threads REQUIRED)
option(WITH_VLBI_SERVER "Add OpenVLBI servers" ON)
option(WITH_INDI_SERVER "Add INDI server for OpenVLBI" OFF)
option(WITH_INDI_SERVER "Add INDI server for OpenVLBI" ON)
option(WITH_DUMMY_SERVER "Add dummy server for OpenVLBI" ON)
option(WITH_JSON_SERVER "Add JSON server for OpenVLBI" OFF)
option(WITH_JSON_SERVER "Add JSON server for OpenVLBI" ON)

set (VLBI_VERSION_MAJOR 1)
set (VLBI_VERSION_MINOR 22)
Expand Down Expand Up @@ -95,13 +95,9 @@ add_library(openvlbi_server STATIC ${CMAKE_CURRENT_SOURCE_DIR}/vlbi_server.cpp)
install(TARGETS openvlbi_server ARCHIVE DESTINATION ${LIB_INSTALL_DIR})

if(WITH_JSON_SERVER)
find_package(JSONPARSER REQUIRED)
if(JSONPARSER_LIBRARIES)
include_directories( ${JSONPARSER_INCLUDE_DIR})
add_executable(vlbi_server_json ${CMAKE_CURRENT_SOURCE_DIR}/vlbi_server_json.cpp ${CMAKE_CURRENT_SOURCE_DIR}/vlbi/instancecollection.cpp)
target_link_libraries(vlbi_server_json openvlbi openvlbi_server ${JSONPARSER_LIBRARIES} ${CFITSIO_LIBRARIES} ${M_LIB} ${ZLIB_LIBRARY})
add_executable(vlbi_server_json ${CMAKE_CURRENT_SOURCE_DIR}/json.c ${CMAKE_CURRENT_SOURCE_DIR}/vlbi_server_json.cpp ${CMAKE_CURRENT_SOURCE_DIR}/vlbi/instancecollection.cpp)
target_link_libraries(vlbi_server_json openvlbi openvlbi_server ${CFITSIO_LIBRARIES} ${M_LIB} ${ZLIB_LIBRARY})
install(TARGETS vlbi_server_json RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
endif(JSONPARSER_LIBRARIES)
endif(WITH_JSON_SERVER)

if(WITH_INDI_SERVER)
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ If everything will be successful three .deb packages will be built and installed
## Other OSes

You'll need CMake to build OpenVLBI, and some developement packages:
+ **libopenvlbi**:libfftw3
+ **vlbi_server_json**: libjsonparser
+ **vlbi_server_indi**: libindi libnova libcfitsio
+ **libopenvlbi**:libfftw3 libcfitsio libjpeg libpng
+ **vlbi_server_indi**: libindi libnova
+ **tests and scripts**: jq

# Using OpenVLBI
Expand Down
56 changes: 0 additions & 56 deletions cmake_modules/FindJSONPARSER.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 8.1.3~),
cdbs,
cmake (>= 2.4.7),
cmake-data,
libindi-dev (>= 1.8.8),
# libindi-dev (>= 1.8.8),
libnova-dev,
libfftw3-dev,
libcfitsio-dev,
Expand Down
Loading

0 comments on commit b5abae2

Please sign in to comment.