mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
0537fdc741
Former-commit-id: b8db13f25b93a0007adf613f0310a1cfbb6b8224
45 lines
1.0 KiB
CMake
45 lines
1.0 KiB
CMake
|
|
find_package(PythonLibs REQUIRED)
|
|
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
|
|
|
# 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
|
|
${CURRENT_HEADER_DIR}/EffectDefinition.h
|
|
)
|
|
|
|
SET(EffectEngineSOURCES
|
|
${CURRENT_SOURCE_DIR}/EffectEngine.cpp
|
|
${CURRENT_SOURCE_DIR}/Effect.cpp
|
|
)
|
|
|
|
|
|
set(EffectEngine_RESOURCES ${CURRENT_SOURCE_DIR}/EffectEngine.qrc)
|
|
|
|
QT4_WRAP_CPP(EffectEngineHEADERS_MOC ${EffectEngineQT_HEADERS})
|
|
|
|
qt4_add_resources(EffectEngine_RESOURCES_RCC ${EffectEngine_RESOURCES} OPTIONS "-no-compress")
|
|
|
|
add_library(effectengine
|
|
${EffectEngineHEADERS}
|
|
${EffectEngineQT_HEADERS}
|
|
${EffectEngineHEADERS_MOC}
|
|
${EffectEngine_RESOURCES_RCC}
|
|
${EffectEngineSOURCES}
|
|
)
|
|
|
|
target_link_libraries(effectengine
|
|
hyperion
|
|
jsoncpp
|
|
${QT_LIBRARIES}
|
|
${PYTHON_LIBRARIES})
|