Commit 971fa563 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Allow the project to be configured for gprof.

parent cf060d6a
......@@ -46,6 +46,10 @@ ENDIF(WIN32)
# VLMC requires libVLC
#SET (WITH_LIBVLC FALSE CACHE BOOL "Compile LibVLC in VLMC")
IF (UNIX)
SET(WITH_PROFILING FALSE CACHE BOOL "Build with profiling support" )
ENDIF(UNIX)
SET(WITH_CRASHBUTTON FALSE CACHE BOOL "Enable the crash button")
SET(WITH_CRASHHANDLER_GUI TRUE CACHE BOOL "Enable the crash handler GUI (with backtrace and restart capabilities)")
SET(WITH_CRASHHANDLER TRUE CACHE BOOL "Enable the crash handler")
......
......@@ -268,4 +268,11 @@ ADD_CUSTOM_COMMAND(
DEPENDS ${CMAKE_BINARY_DIR}/src/vlmc
)
IF(UNIX)
IF (WITH_PROFILING)
ADD_DEFINITIONS( -pg )
SET_TARGET_PROPERTIES( vlmc PROPERTIES LINK_FLAGS -pg )
#TARGET_LINK_LIBRARIES( vlmc -pg )
ENDIF(WITH_PROFILING)
ENDIF(UNIX)
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