mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 23:22:51 +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
|
||||
trex.c
|
||||
cjson.c
|
||||
tinythread/tinythread.cpp
|
||||
)
|
||||
|
||||
|
||||
|
||||
add_subdirectory(simpleini)
|
||||
add_subdirectory(support)
|
||||
|
||||
|
||||
add_library(openalpr ${lpr_source_files})
|
||||
|
||||
|
||||
|
||||
add_subdirectory(simpleini)
|
||||
add_subdirectory(support)
|
||||
# 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 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"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user