mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 07:37:00 +08:00
Update how openalpr.conf is generated and ultimately installed.
This commit is contained in:
@@ -105,7 +105,10 @@ add_subdirectory(video)
|
|||||||
install (TARGETS alpr DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
install (TARGETS alpr DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||||
install (FILES ${CMAKE_SOURCE_DIR}/../doc/man/alpr.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1 COMPONENT doc)
|
install (FILES ${CMAKE_SOURCE_DIR}/../doc/man/alpr.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1 COMPONENT doc)
|
||||||
install (DIRECTORY ${CMAKE_SOURCE_DIR}/../runtime_data DESTINATION ${CMAKE_INSTALL_PREFIX}/share/openalpr)
|
install (DIRECTORY ${CMAKE_SOURCE_DIR}/../runtime_data DESTINATION ${CMAKE_INSTALL_PREFIX}/share/openalpr)
|
||||||
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/../config/openalpr.conf ${CMAKE_INSTALL_SYSCONFDIR}/openalpr/openalpr.conf)
|
|
||||||
|
# set runtime_data to reflect the current CMAKE_INSTALL_PREFIX
|
||||||
|
CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/../config/openalpr.conf.in ${CMAKE_CURRENT_BINARY_DIR}/config/openalpr.conf)
|
||||||
|
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/config/openalpr.conf DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/openalpr/ COMPONENT config)
|
||||||
|
|
||||||
IF (WITH_DAEMON)
|
IF (WITH_DAEMON)
|
||||||
install (TARGETS alprd DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
install (TARGETS alprd DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
|
||||||
|
Reference in New Issue
Block a user