Commit 4dc5fcc3 authored by Aline Gondim Santos's avatar Aline Gondim Santos Committed by Aline Gondim Santos

enabling plugins for windows

Change-Id: Ifb5ee8268034335a8d96412ae11e445e9856e6c3
parent 7aa041ed
......@@ -92,13 +92,6 @@ else()
find_package(Qt5LinguistTools)
endif()
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
MESSAGE(STATUS "PLUGIN enabled")
SET(ENABLE_PLUGIN 0 CACHE BOOLEAN "Enable plugin")
SET(ENABLE_PLUGIN true)
add_definitions( -DENABLE_PLUGIN=true )
ENDIF()
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND NOT ENABLE_LIBWRAP)
FIND_PACKAGE(Qt5DBus)
ELSE()
......@@ -256,10 +249,11 @@ IF(NOT (${ENABLE_VIDEO} MATCHES false))
add_definitions( -DENABLE_VIDEO=true )
ENDIF(NOT (${ENABLE_VIDEO} MATCHES false))
IF(NOT (${ENABLE_PLUGIN} MATCHES true))
MESSAGE(STATUS "PLUGIN disabled")
SET(ENABLE_PLUGIN 0 CACHE BOOLEAN "Disable plugin")
ENDIF(NOT (${ENABLE_PLUGIN} MATCHES true))
IF(NOT (${ENABLE_PLUGIN} MATCHES false))
MESSAGE(STATUS "PLUGIN enabled")
SET(ENABLE_PLUGIN 1 CACHE BOOLEAN "Enable plugin")
add_definitions( -DENABLE_PLUGIN=true )
ENDIF(NOT (${ENABLE_PLUGIN} MATCHES false))
# ADD_DEFINITIONS(-DQT_DISABLE_DEPRECATED_BEFORE=1)
......
......@@ -34,11 +34,11 @@ IF(NOT (${ENABLE_VIDEO} MATCHES "false"))
SET(ENABLE_VIDEO 1 CACHE BOOLEAN "Enable video")
ENDIF(NOT (${ENABLE_VIDEO} MATCHES "false"))
IF(NOT (${ENABLE_PLUGIN} MATCHES "true"))
MESSAGE("PLUGIN disabled")
ADD_DEFINITIONS(-DENABLE_PLUGIN=false)
SET(ENABLE_PLUGIN 0 CACHE BOOLEAN "Disable plugin")
ENDIF(NOT (${ENABLE_PLUGIN} MATCHES "true"))
IF(NOT (${ENABLE_PLUGIN} MATCHES "false"))
MESSAGE("PLUGIN enabled")
ADD_DEFINITIONS(-DENABLE_PLUGIN=true)
SET(ENABLE_PLUGIN 1 CACHE BOOLEAN "Enable plugin")
ENDIF(NOT (${ENABLE_PLUGIN} MATCHES "false"))
IF(ENABLE_PLUGIN)
MESSAGE("Adding pluginmanager.cpp")
......
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