mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
0940872870
* implement make install set CMAKE_INSTALL_PREFIX e.g. to /opt to install to /opt/hyperion set ENABLE_SYSTEM_INSTALL to ON to activate installation after compiling use make install or make install/strip (for performance/size optimized binaries - compile in Release to get best performance) * cleanup cmake files use cmake -DINSTALL_PREFIX=/opt/hyperion .. to install all files to hyperion or cmake -DINSTALL_PREFIX=/usr/ to install to usr. install folders are linux standard. bin go to bin folder and additionals (effects) go to share/hyperion * add uninstall target - be patient with that, this will remove files from your system install service files to share/hyperion - if you want to use them you have to make a symlink to your location of service files * optimize build release script install service files into hyperion share folder (services not activated, this must be done by distribution package script) initial support of cmake option -DPLATFORM= option. This selects platform specific cmake flags. no need for -DENABLE_... options (unless you want some special things) automatic detect for apple build * update submodule * fix cmake error when no platform is given * initial support for deb,rpm and tgz packages - no usefull content atm! * make packeages contain usefull stuff * add license make packes more functional. package specific install missing yet * implement debian postinstall * disable rpm generation until it has a working state * add hypercon compat * add posibility for multiple config files. first one found is taken Former-commit-id: 1c2669961da98fd05a97359e75f1d6d68e126715
64 lines
1.3 KiB
CMake
64 lines
1.3 KiB
CMake
# Configure minimum CMAKE version
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
# Set the project name
|
|
project(hyperion-dispmanx)
|
|
|
|
# find QT
|
|
if(ENABLE_QT5)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
else()
|
|
find_package(Qt4 REQUIRED QtCore QtGui QtNetwork )
|
|
endif()
|
|
|
|
# Find the BCM-package (VC control)
|
|
find_package(BCM REQUIRED)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../libsrc/protoserver
|
|
${QT_INCLUDES}
|
|
${BCM_INCLUDE_DIRS}
|
|
${PROTOBUF_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(Hyperion_Dispmanx_QT_HEADERS
|
|
DispmanxWrapper.h)
|
|
|
|
set(Hyperion_Dispmanx_HEADERS
|
|
)
|
|
|
|
set(Hyperion_Dispmanx_SOURCES
|
|
hyperion-dispmanx.cpp
|
|
DispmanxWrapper.cpp
|
|
)
|
|
|
|
if(ENABLE_QT5)
|
|
QT5_WRAP_CPP(Hyperion_Dispmanx_HEADERS_MOC ${Hyperion_Dispmanx_QT_HEADERS})
|
|
else()
|
|
QT4_WRAP_CPP(Hyperion_Dispmanx_HEADERS_MOC ${Hyperion_Dispmanx_QT_HEADERS})
|
|
endif()
|
|
|
|
add_executable( ${PROJECT_NAME}
|
|
${Hyperion_Dispmanx_HEADERS}
|
|
${Hyperion_Dispmanx_SOURCES}
|
|
${Hyperion_Dispmanx_HEADERS_MOC}
|
|
)
|
|
|
|
target_link_libraries( ${PROJECT_NAME}
|
|
getoptPlusPlus
|
|
blackborder
|
|
hyperion-utils
|
|
protoserver
|
|
dispmanx-grabber
|
|
${Dispmanx_LIBRARIES}
|
|
pthread
|
|
)
|
|
|
|
if(ENABLE_QT5)
|
|
qt5_use_modules(${PROJECT_NAME} Widgets Core Gui Network)
|
|
else()
|
|
qt4_use_modules(${PROJECT_NAME} Core Gui Network )
|
|
endif()
|
|
|
|
install ( TARGETS ${PROJECT_NAME} DESTINATION "bin" COMPONENT ambilight )
|