mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
feat(win): Add binary meta (#932)
This commit is contained in:
@@ -17,10 +17,16 @@ set(Hyperion_QT_SOURCES
|
||||
hyperion-qt.cpp
|
||||
)
|
||||
|
||||
# generate windows .rc file for this binary
|
||||
if (WIN32)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/win/win_rc.cmake)
|
||||
generate_win_rc_file(${PROJECT_NAME})
|
||||
endif()
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
${Hyperion_QT_HEADERS}
|
||||
${Hyperion_QT_SOURCES}
|
||||
${WIN_RC_ICON_FILE}
|
||||
${${PROJECT_NAME}_WIN_RC_PATH}
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
|
@@ -17,10 +17,16 @@ set(hyperion-remote_SOURCES
|
||||
hyperion-remote.cpp
|
||||
JsonConnection.cpp)
|
||||
|
||||
# generate windows .rc file for this binary
|
||||
if (WIN32)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/win/win_rc.cmake)
|
||||
generate_win_rc_file(${PROJECT_NAME})
|
||||
endif()
|
||||
|
||||
add_executable(${PROJECT_NAME}
|
||||
${hyperion-remote_HEADERS}
|
||||
${hyperion-remote_SOURCES}
|
||||
${WIN_RC_ICON_FILE}
|
||||
${${PROJECT_NAME}_WIN_RC_PATH}
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
|
@@ -8,6 +8,12 @@ endif()
|
||||
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
|
||||
# generate windows .rc file for this binary
|
||||
if (WIN32)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/win/win_rc.cmake)
|
||||
generate_win_rc_file(hyperiond)
|
||||
endif()
|
||||
|
||||
add_executable(hyperiond
|
||||
console.h
|
||||
hyperiond.h
|
||||
@@ -15,9 +21,14 @@ add_executable(hyperiond
|
||||
hyperiond.cpp
|
||||
systray.cpp
|
||||
main.cpp
|
||||
${WIN_RC_ICON_FILE}
|
||||
${hyperiond_WIN_RC_PATH}
|
||||
)
|
||||
|
||||
# promote hyperiond as GUI app
|
||||
if (WIN32)
|
||||
target_link_options(hyperiond PUBLIC /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup)
|
||||
endif()
|
||||
|
||||
target_link_libraries(hyperiond
|
||||
commandline
|
||||
hyperion
|
||||
|
Reference in New Issue
Block a user