Skip to content

Commit

Permalink
- Added cmake install routines. Now shotdetect can now be installed u…
Browse files Browse the repository at this point in the history
…sing "make install".

- Added package description (description-pak) for "checkinstall".
  • Loading branch information
DVA-Profession committed Aug 24, 2013
1 parent b3eb0ab commit 356beff
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Expand Up @@ -179,8 +179,22 @@ IF(USE_WXWIDGETS AND wxWidgets_FOUND)
SET(${TARGET_NAME}_GUI_HDRS src/ui/dialog_help.h src/ui/dialog_shotdetect.h src/ui/process_video_thread.h)
ADD_EXECUTABLE(${TARGET_NAME}-gui ${APP_TYPE} ${${TARGET_NAME}_GUI_SRCS} ${${TARGET_NAME}_GUI_HDRS})
TARGET_LINK_LIBRARIES(${TARGET_NAME}-gui ${TARGET_NAME})
# Make this target optional to install:
SET(TARGETS_TO_INSTALL ${TARGET_NAME}-gui)
ELSE()
SET(${TARGET_NAME}_COMMANDLINE_SRCS src/commandline.cc)
ADD_EXECUTABLE(${TARGET_NAME}-cmd ${${TARGET_NAME}_COMMANDLINE_SRCS})
TARGET_LINK_LIBRARIES(${TARGET_NAME}-cmd ${TARGET_NAME})
# Make this target optional to install:
SET(TARGETS_TO_INSTALL ${TARGET_NAME}-cmd)
ENDIF()


# Routines for installing shotdetect.
# Taken from official documentation (http://www.cmake.org/cmake/help/cmake2.6docs.html#command:install)
install(
TARGETS ${TARGETS_TO_INSTALL}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib/static
)
6 changes: 6 additions & 0 deletions description-pak
@@ -0,0 +1,6 @@
'Shotdetect' detects scene cuts within a movie.

The result produced is a simple XML file containing informations about the analyzed video/audio material, such as:
- Quantity of movement
- RGB color values
- HSV color values

0 comments on commit 356beff

Please sign in to comment.