-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from rdumusc/master
Deflect cleanups (part1)
- Loading branch information
Showing
13 changed files
with
68 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# -*- mode: cmake -*- | ||
# CMake/common https://github.com/Eyescale/CMake.git a9c3537 | ||
# CMake/common https://github.com/Eyescale/CMake.git 5734155 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ CMake/common | |
Makefile | ||
CMakeLists.txt.user* | ||
build/ | ||
Lunchbox/ | ||
Servus/ | ||
___* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,17 +6,9 @@ | |
# Info: http://www.itk.org/Wiki/CMake:Component_Install_With_CPack | ||
|
||
set(CPACK_PACKAGE_EXECUTABLES "${DESKTOPSTREAMER_APP_NAME}") | ||
set(CPACK_PACKAGE_NAME "${DESKTOPSTREAMER_APP_NAME}") | ||
set(CPACK_PACKAGE_CONTACT "Daniel Nachbaur <[email protected]>") | ||
set(CPACK_PACKAGE_VENDOR "https://github.com/BlueBrain/Deflect") | ||
|
||
set(CPACK_COMPONENT_DESKTOPSTREAMER_DISPLAY_NAME "DesktopStreamer Application") | ||
set(CPACK_COMPONENT_DESKTOPSTREAMER_DESCRIPTION "DesktopStreamer is an application that lets you stream your desktop to a running DisplayCluster instance.") | ||
set(CPACK_COMPONENT_DESKTOPSTREAMER_DEPENDS Deflect) | ||
|
||
# Currently we only package desktopstreamer and the Deflect library | ||
set(CPACK_COMPONENTS_ALL desktopstreamer lib) | ||
|
||
# Linux Debian specific settings | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qtbase5-dev, libturbojpeg" ) | ||
set(CPACK_DEB_COMPONENT_INSTALL ON) # Set this to package only components in CPACK_COMPONENTS_ALL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,69 +3,42 @@ | |
# Raphael Dumusc <[email protected]> | ||
|
||
set(DESKTOPSTREAMER_MOC_HEADERS | ||
MainWindow.h | ||
DesktopSelectionWindow.h | ||
DesktopSelectionRectangle.h | ||
MainWindow.h | ||
) | ||
|
||
set(DESKTOPSTREAMER_SOURCES | ||
DesktopSelectionRectangle.cpp | ||
DesktopSelectionWindow.cpp | ||
DesktopSelectionView.cpp | ||
main.cpp | ||
MainWindow.cpp | ||
main.cpp | ||
) | ||
|
||
set(DESKTOPSTREAMER_LINK_LIBRARIES Deflect ${Qt5Core_LIBRARIES} ${Qt5Widgets_LIBRARIES}) | ||
set(DESKTOPSTREAMER_LINK_LIBRARIES | ||
Deflect | ||
${Qt5Core_LIBRARIES} | ||
${Qt5Widgets_LIBRARIES} | ||
) | ||
|
||
set(DESKTOPSTREAMER_APP_NAME desktopstreamer) | ||
set(DESKTOPSTREAMER_RESOURCES resources.qrc) | ||
|
||
qt5_wrap_cpp(MOC_OUTFILES ${DESKTOPSTREAMER_MOC_HEADERS}) | ||
qt5_add_resources(QRC_SOURCES ${DESKTOPSTREAMER_RESOURCES}) | ||
|
||
if(APPLE) | ||
set(DESKTOPSTREAMER_APP_NAME DesktopStreamer) | ||
set(DESKTOPSTREAMER_ICON_FILE desktopstreamer.icns) | ||
string(TIMESTAMP _CURRENT_YEAR "%Y") | ||
set(DESKTOPSTREAMER_COPYRIGHT "EPFL/Blue Brain Project ${_CURRENT_YEAR}") | ||
set(DESKTOPSTREAMER_ICON desktopstreamer.icns) | ||
|
||
list(APPEND DESKTOPSTREAMER_SOURCES AppNapSuspender.mm) | ||
list(APPEND DESKTOPSTREAMER_LINK_LIBRARIES | ||
"-framework Foundation -framework CoreGraphics") | ||
list(APPEND DESKTOPSTREAMER_SOURCES AppNapSuspender.mm) | ||
|
||
# set where in the bundle to put the icns file | ||
set_source_files_properties(${DESKTOPSTREAMER_ICON_FILE} | ||
PROPERTIES MACOSX_PACKAGE_LOCATION Resources) | ||
|
||
add_executable(${DESKTOPSTREAMER_APP_NAME} MACOSX_BUNDLE | ||
${DESKTOPSTREAMER_SOURCES} ${MOC_OUTFILES} ${QRC_SOURCES} | ||
${DESKTOPSTREAMER_ICON_FILE}) # include the icns file in the target | ||
|
||
# Configure the bundle property file using current version and year | ||
string(TIMESTAMP CURRENT_YEAR "%Y") | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in | ||
${CMAKE_CURRENT_BINARY_DIR}/Info.plist @ONLY) | ||
set_target_properties(${DESKTOPSTREAMER_APP_NAME} PROPERTIES | ||
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_BINARY_DIR}/Info.plist) | ||
|
||
elseif(WIN32) | ||
set(DESKTOPSTREAMER_APP_NAME desktopstreamer) | ||
list(APPEND DESKTOPSTREAMER_LINK_LIBRARIES ${QT_QTMAIN_LIBRARY} Ws2_32) | ||
|
||
add_executable(${DESKTOPSTREAMER_APP_NAME} WIN32 | ||
${DESKTOPSTREAMER_SOURCES} ${MOC_OUTFILES} ${QRC_SOURCES}) | ||
|
||
else() | ||
set(DESKTOPSTREAMER_APP_NAME desktopstreamer) | ||
|
||
add_executable(${DESKTOPSTREAMER_APP_NAME} | ||
${DESKTOPSTREAMER_SOURCES} ${MOC_OUTFILES} ${QRC_SOURCES}) | ||
list(APPEND DESKTOPSTREAMER_LINK_LIBRARIES Ws2_32) | ||
endif() | ||
|
||
target_link_libraries(${DESKTOPSTREAMER_APP_NAME} ${DESKTOPSTREAMER_LINK_LIBRARIES}) | ||
|
||
install(TARGETS ${DESKTOPSTREAMER_APP_NAME} | ||
RUNTIME DESTINATION bin COMPONENT desktopstreamer | ||
BUNDLE DESTINATION . COMPONENT desktopstreamer | ||
) | ||
common_gui_application(${DESKTOPSTREAMER_APP_NAME}) | ||
|
||
set(CPACK_PACKAGE_LICENSE "LGPL") | ||
include(CPackConfig) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.