2013-11-24 16:10:48 +01:00
|
|
|
|
2013-11-24 18:53:20 +01:00
|
|
|
find_package(PythonLibs REQUIRED)
|
2016-02-24 00:24:46 +01:00
|
|
|
#OpenElec uses 2.7, if you want to compile for OpenElec require 2.7
|
|
|
|
#find_package(PythonLibs 2.7 REQUIRED)
|
2013-11-24 18:53:20 +01:00
|
|
|
|
2015-01-21 12:57:28 +01:00
|
|
|
# Include the python directory. Also include the parent (which is for example /usr/include)
|
|
|
|
# which may be required when it is not includes by the (cross-) compiler by default.
|
|
|
|
include_directories(${PYTHON_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}/..)
|
2013-11-24 18:53:20 +01:00
|
|
|
|
2013-11-24 16:10:48 +01:00
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/effectengine)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/effectengine)
|
|
|
|
|
|
|
|
# Group the headers that go through the MOC compiler
|
|
|
|
SET(EffectEngineQT_HEADERS
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_HEADER_DIR}/EffectEngine.h
|
|
|
|
${CURRENT_SOURCE_DIR}/Effect.h
|
2013-11-24 16:10:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(EffectEngineHEADERS
|
2013-12-01 14:09:01 +01:00
|
|
|
${CURRENT_HEADER_DIR}/EffectDefinition.h
|
2013-11-24 16:10:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(EffectEngineSOURCES
|
2016-05-26 23:44:27 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/EffectEngine.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/Effect.cpp
|
2013-11-24 16:10:48 +01:00
|
|
|
)
|
|
|
|
|
2013-12-11 21:58:59 +01:00
|
|
|
set(EffectEngine_RESOURCES ${CURRENT_SOURCE_DIR}/EffectEngine.qrc)
|
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
QT5_WRAP_CPP(EffectEngineHEADERS_MOC ${EffectEngineQT_HEADERS})
|
|
|
|
qt5_add_resources(EffectEngine_RESOURCES_RCC ${EffectEngine_RESOURCES} OPTIONS "-no-compress")
|
2013-12-11 21:58:59 +01:00
|
|
|
|
2013-11-24 16:10:48 +01:00
|
|
|
add_library(effectengine
|
2016-05-26 23:44:27 +02:00
|
|
|
${EffectEngineHEADERS}
|
|
|
|
${EffectEngineQT_HEADERS}
|
|
|
|
${EffectEngineHEADERS_MOC}
|
|
|
|
${EffectEngine_RESOURCES_RCC}
|
|
|
|
${EffectEngineSOURCES}
|
2013-11-24 16:10:48 +01:00
|
|
|
)
|
|
|
|
|
2016-06-17 01:25:40 +02:00
|
|
|
qt5_use_modules(effectengine Widgets)
|
2016-01-06 17:31:23 +01:00
|
|
|
|
2013-11-24 16:10:48 +01:00
|
|
|
target_link_libraries(effectengine
|
2016-05-26 23:44:27 +02:00
|
|
|
hyperion
|
|
|
|
jsoncpp
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
${PYTHON_LIBRARIES})
|