mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
e6170ed698
cleanup some cmakelist files fix qt5 build Former-commit-id: 024b5b6dc5dc96fcb16f6e8958ad3684a6728504
58 lines
1.1 KiB
CMake
58 lines
1.1 KiB
CMake
# Configure minimum CMAKE version
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
# Set the project name
|
|
project(hyperion-framebuffer)
|
|
|
|
# find QT
|
|
if(ENABLE_QT5)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
else(ENABLE_QT5)
|
|
find_package(Qt4 REQUIRED QtCore QtGui QtNetwork )
|
|
endif(ENABLE_QT5)
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../libsrc/protoserver
|
|
${QT_INCLUDES}
|
|
${PROTOBUF_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(Hyperion_FB_QT_HEADERS
|
|
FramebufferWrapper.h
|
|
)
|
|
|
|
set(Hyperion_FB_HEADERS
|
|
)
|
|
|
|
set(Hyperion_FB_SOURCES
|
|
hyperion-framebuffer.cpp
|
|
FramebufferWrapper.cpp
|
|
)
|
|
|
|
if(ENABLE_QT5)
|
|
QT5_WRAP_CPP(Hyperion_FB_HEADERS_MOC ${Hyperion_FB_QT_HEADERS})
|
|
else(ENABLE_QT5)
|
|
QT4_WRAP_CPP(Hyperion_FB_HEADERS_MOC ${Hyperion_FB_QT_HEADERS})
|
|
endif(ENABLE_QT5)
|
|
|
|
add_executable( ${PROJECT_NAME}
|
|
${Hyperion_FB_HEADERS}
|
|
${Hyperion_FB_SOURCES}
|
|
${Hyperion_FB_HEADERS_MOC}
|
|
)
|
|
|
|
target_link_libraries( ${PROJECT_NAME}
|
|
getoptPlusPlus
|
|
blackborder
|
|
hyperion-utils
|
|
protoserver
|
|
framebuffer-grabber
|
|
pthread
|
|
)
|
|
|
|
if(ENABLE_QT5)
|
|
qt5_use_modules(${PROJECT_NAME} Widgets Core Gui Network)
|
|
else(ENABLE_QT5)
|
|
qt4_use_modules(${PROJECT_NAME} Core Gui Network )
|
|
endif(ENABLE_QT5)
|