2013-11-24 16:10:48 +01:00
|
|
|
|
2013-11-24 18:53:20 +01:00
|
|
|
find_package(PythonLibs REQUIRED)
|
|
|
|
|
|
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
|
|
|
|
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
|
|
|
|
${CURRENT_HEADER_DIR}/EffectEngine.h
|
|
|
|
${CURRENT_SOURCE_DIR}/Effect.h
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
${CURRENT_SOURCE_DIR}/EffectEngine.cpp
|
|
|
|
${CURRENT_SOURCE_DIR}/Effect.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
QT4_WRAP_CPP(EffectEngineHEADERS_MOC ${EffectEngineQT_HEADERS})
|
|
|
|
|
|
|
|
add_library(effectengine
|
|
|
|
${EffectEngineHEADERS}
|
|
|
|
${EffectEngineQT_HEADERS}
|
|
|
|
${EffectEngineHEADERS_MOC}
|
|
|
|
${EffectEngineSOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(effectengine
|
|
|
|
hyperion
|
2013-11-30 17:41:38 +01:00
|
|
|
jsoncpp
|
2013-11-24 18:53:20 +01:00
|
|
|
${QT_LIBRARIES}
|
|
|
|
${PYTHON_LIBRARIES})
|