Commit 009ebcb2 authored by Ludovic Fauvet's avatar Ludovic Fauvet

cmake: option to enable the crash handler

parent 9c3852cf
......@@ -41,6 +41,8 @@ ENDIF(WIN32)
# VLMC requires libVLC
#SET (WITH_LIBVLC FALSE CACHE BOOL "Compile LibVLC in VLMC")
SET(WITH_CRASHHANDLER FALSE CACHE BOOL "Enable the crash handler")
FIND_PACKAGE(LIBVLC)
IF (NOT LIBVLC_FOUND)
MESSAGE (SEND_ERROR "LibVLC dependency was not found (please get libvlc)!")
......
......@@ -252,6 +252,10 @@ QT4_WRAP_UI(VLMC_UIS_H ${VLMC_UIS})
QT4_ADD_RESOURCES(VLMC_RCC_SRCS ${VLMC_RCC})
QT4_WRAP_CPP(VLMC_MOC_SRCS ${VLMC_HDRS})
IF(WITH_CRASHHANDLER)
ADD_DEFINITIONS(-DDEBUG_CRASHHANDLER)
ENDIF(WITH_CRASHHANDLER)
ADD_EXECUTABLE(vlmc ${VLMC_SRCS} ${VLMC_MOC_SRCS} ${VLMC_UIS_H} ${VLMC_RCC_SRCS})
ADD_DEPENDENCIES(vlmc translations)
......@@ -267,10 +271,10 @@ TARGET_LINK_LIBRARIES(vlmc
INSTALL(TARGETS vlmc RUNTIME DESTINATION ${VLMC_BIN_DIR})
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_SOURCE_DIR}/bin/vlmc
COMMAND ${CMAKE_COMMAND} copy ${CMAKE_CURRENT_SOURCE_DIR}/vlmc ${CMAKE_SOURCE_DIR}/bin/vlmc
DEPENDS ${CMAKE_BINARY_DIR}/src/vlmc
)
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_SOURCE_DIR}/bin/vlmc
COMMAND ${CMAKE_COMMAND} copy ${CMAKE_CURRENT_SOURCE_DIR}/vlmc ${CMAKE_SOURCE_DIR}/bin/vlmc
DEPENDS ${CMAKE_BINARY_DIR}/src/vlmc
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment