2017-08-01 15:42:36 +02:00
|
|
|
find_package(PythonLibs 2.7 REQUIRED)
|
|
|
|
message( STATUS "PYTHON VERSIONS FOUND: ${PYTHONLIBS_VERSION_STRING}" )
|
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)
|
|
|
|
|
2017-08-04 23:08:15 +02:00
|
|
|
FILE ( GLOB EffectEngineSOURCES "${CURRENT_HEADER_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.h" "${CURRENT_SOURCE_DIR}/*.cpp" )
|
2016-09-13 11:51:16 +02:00
|
|
|
FILE ( GLOB effectFiles RELATIVE ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/effects/* )
|
2017-08-04 23:08:15 +02:00
|
|
|
|
2016-09-13 11:51:16 +02:00
|
|
|
SET ( HYPERION_EFFECTS_RES "")
|
|
|
|
FOREACH( f ${effectFiles} )
|
|
|
|
GET_FILENAME_COMPONENT(fname ${f} NAME)
|
|
|
|
SET(HYPERION_EFFECTS_RES "${HYPERION_EFFECTS_RES}\n\t\t<file alias=\"/effects/${fname}\">${f}</file>")
|
|
|
|
ENDFOREACH()
|
|
|
|
CONFIGURE_FILE(${CURRENT_SOURCE_DIR}/EffectEngine.qrc.in ${CMAKE_BINARY_DIR}/EffectEngine.qrc )
|
|
|
|
|
|
|
|
SET(EffectEngine_RESOURCES ${CMAKE_BINARY_DIR}/EffectEngine.qrc)
|
2013-12-11 21:58:59 +01:00
|
|
|
|
2016-09-14 13:51:28 +02:00
|
|
|
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
|
|
|
${EffectEngine_RESOURCES_RCC}
|
|
|
|
${EffectEngineSOURCES}
|
2013-11-24 16:10:48 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(effectengine
|
2016-05-26 23:44:27 +02:00
|
|
|
hyperion
|
2017-08-01 15:42:36 +02:00
|
|
|
Qt5::Core
|
|
|
|
Qt5::Gui
|
2017-08-04 23:08:15 +02:00
|
|
|
${PYTHON_LIBRARIES}
|
|
|
|
)
|