Added install target

This commit is contained in:
Ezra Taimuty-Loomis 2020-08-19 14:10:39 -04:00
parent 015c81ea10
commit 06f87636b9
8 changed files with 92 additions and 10 deletions

6
.gitignore vendored
View File

@ -245,6 +245,8 @@ ModelManifest.xml
*.vscode
[Dd]ata/
src/external/live
*.md5
*.md5
data/*.json
data/logs

View File

@ -8,7 +8,7 @@ set(CMAKE_BUILD_TYPE Debug)
project(PiScan)
set(PISCAN_BIN_DIR ${PROJECT_SOURCE_DIR}/bin)
set(PISCAN_BIN_DIR ${PROJECT_SOURCE_DIR}/build)
file(MAKE_DIRECTORY ${PISCAN_BIN_DIR})
add_subdirectory(src)
@ -96,8 +96,3 @@ set(LIVE_LIBS livemedia liveBUE liveUE liveGS)
target_include_directories(server PUBLIC ${PROJECT_SOURCE_DIR}/proto)
install(
TARGETS piscan_server
DESTINATION /usr/local/bin
)

4
configure vendored
View File

@ -1,4 +1,6 @@
#!/bin/sh
mkdir bin data
sh proto_gen.sh
mkdir build data
cd bin && cmake ..

23
data/defaults/config.json Normal file
View File

@ -0,0 +1,23 @@
{
"config": {
"general": {
"log_verbosity": "0"
},
"socket": {
"port": "1234",
"max_connections": "5",
"use_gui": "false",
"client_path": ".\/",
"python_path": "python"
},
"demod": {
"retune_delay": "225000",
"demod_delay": "10000",
"squelch_mode": "0"
},
"audio_stream": {
"rtsp_port": "8554",
"http_tunneling": "false"
}
}
}

15
data/defaults/state.json Normal file
View File

@ -0,0 +1,15 @@
{
"state": {
"demod": {
"gain": "-10",
"squelch": "0"
},
"scanner": {
"state": "2",
"manual_freq": "100000000",
"manual_mode": "NFM",
"hold_key": "",
"hold_index": ""
}
}
}

View File

@ -0,0 +1,34 @@
{
"systems": [
{
"systype": "analog",
"tag": "Sample System",
"lockout": "false",
"channels": [
{
"tag": "FM entry - CSQ",
"lockout": "false",
"delay": "2000",
"freq": "453150000",
"chantype": "fmc"
},
{
"tag": "FM entry - PL",
"lockout": "false",
"delay": "2000",
"freq": "471837500",
"chantype": "plc",
"tone": "103.5"
},
{
"tag": "FM entry - DCS",
"lockout": "false",
"delay": "2000",
"freq": "460287500",
"chantype": "dcc",
"code": "023"
}
]
}
]
}

View File

@ -2,4 +2,4 @@
cd ./proto
protoc -cpp_out=. *.proto
protoc --cpp_out=. *.proto

View File

@ -149,3 +149,14 @@ set(APPLICATION_LIBS common external loguru proto scan server sigproc util ${APP
target_link_libraries(piscan_server ${APPLICATION_LIBS})
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "etaimutyloomis@gmail.com")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
include(CPack)
install(
TARGETS piscan_server
DESTINATION /usr/local/bin
LIBRARY DESTINATION /usr/local/bin
)