mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 01:42:49 +08:00
Using cmake to set the default runtime_dir (relative to the source path).
This commit is contained in:
@@ -23,12 +23,17 @@ set(lpr_source_files
|
|||||||
verticalhistogram.cpp
|
verticalhistogram.cpp
|
||||||
trex.c
|
trex.c
|
||||||
cjson.c
|
cjson.c
|
||||||
|
tinythread/tinythread.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
add_library(openalpr ${lpr_source_files})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(simpleini)
|
add_subdirectory(simpleini)
|
||||||
add_subdirectory(support)
|
add_subdirectory(support)
|
||||||
|
|
||||||
|
|
||||||
|
add_library(openalpr ${lpr_source_files})
|
||||||
|
|
||||||
|
|
||||||
|
# Add definition for default runtime dir
|
||||||
|
add_definitions(-DDEFAULT_RUNTIME_DIR="${CMAKE_SOURCE_DIR}/../runtime_data/")
|
@@ -22,7 +22,10 @@
|
|||||||
#define CASCADE_DIR "/region/"
|
#define CASCADE_DIR "/region/"
|
||||||
#define POSTPROCESS_DIR "/postprocess"
|
#define POSTPROCESS_DIR "/postprocess"
|
||||||
|
|
||||||
#define DEFAULT_RUNTIME_DIR "/home/mhill/projects/alpr/runtime_data"
|
#ifndef DEFAULT_RUNTIME_DIR
|
||||||
|
#define DEFAULT_RUNTIME_DIR "/default_runtime_data_dir/"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define ENV_VARIABLE_RUNTIME_DIR "OPENALPR_RUNTIME_DIR"
|
#define ENV_VARIABLE_RUNTIME_DIR "OPENALPR_RUNTIME_DIR"
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user