2013-09-28 17:59:50 +08:00
|
|
|
# CMakeLists.txt for the ZoneMinder perl module.
|
|
|
|
|
|
|
|
# Create files from the .in files
|
|
|
|
configure_file(lib/ZoneMinder/Base.pm.in ${CMAKE_CURRENT_SOURCE_DIR}/lib/ZoneMinder/Base.pm @ONLY)
|
|
|
|
configure_file(lib/ZoneMinder/Config.pm.in ${CMAKE_CURRENT_SOURCE_DIR}/lib/ZoneMinder/Config.pm @ONLY)
|
|
|
|
configure_file(lib/ZoneMinder/Memory.pm.in ${CMAKE_CURRENT_SOURCE_DIR}/lib/ZoneMinder/Memory.pm @ONLY)
|
|
|
|
configure_file(lib/ZoneMinder/ConfigData.pm.in ${CMAKE_CURRENT_SOURCE_DIR}/lib/ZoneMinder/ConfigData.pm @ONLY)
|
|
|
|
|
|
|
|
# Add build target for the perl modules
|
2013-10-05 03:35:16 +08:00
|
|
|
add_custom_target(zmperlmodules ALL perl Makefile.PL INSTALLDIRS=site FIRST_MAKEFILE="${CMAKE_CURRENT_SOURCE_DIR}/MakefilePerl" PREFIX="${CMAKE_CURRENT_SOURCE_DIR}/output" LIB="${CMAKE_CURRENT_SOURCE_DIR}/output/${CMAKE_INSTALL_LIBDIR}" COMMAND make --makefile=MakefilePerl COMMAND make --makefile=MakefilePerl pure_install COMMENT "Building ZoneMinder perl modules")
|
2013-09-28 17:59:50 +08:00
|
|
|
|
|
|
|
# Add install target for the perl modules
|
|
|
|
install(DIRECTORY output/ DESTINATION "${CMAKE_INSTALL_PREFIX}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|