build(cmd/deskflows): Explicit Sources
This commit is contained in:
parent
337d236f54
commit
ad6551262c
1 changed files with 17 additions and 20 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
# Deskflow -- mouse and keyboard sharing utility
|
# Deskflow -- mouse and keyboard sharing utility
|
||||||
|
# Copyright (C) 2024 Chris Rizzitello <sithlord48@gmail.com>
|
||||||
# Copyright (C) 2012-2024 Symless Ltd.
|
# Copyright (C) 2012-2024 Symless Ltd.
|
||||||
# Copyright (C) 2009-2012 Nick Bolton
|
# Copyright (C) 2009-2012 Nick Bolton
|
||||||
#
|
#
|
||||||
|
|
@ -16,39 +17,35 @@
|
||||||
|
|
||||||
set(server_source_name "deskflows")
|
set(server_source_name "deskflows")
|
||||||
set(target ${SERVER_BINARY_NAME})
|
set(target ${SERVER_BINARY_NAME})
|
||||||
set(sources ${server_source_name}.cpp)
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
file(GLOB arch_headers "MSWindows*.h")
|
set(PLATFORM_SOURCES
|
||||||
file(GLOB arch_sources "MSWindows*.cpp")
|
${server_source_name}.exe.manifest
|
||||||
list(
|
|
||||||
APPEND
|
|
||||||
sources
|
|
||||||
resource.h
|
|
||||||
${server_source_name}.ico
|
${server_source_name}.ico
|
||||||
${server_source_name}.rc
|
${server_source_name}.rc
|
||||||
|
MSWindowsServerTaskBarReceiver.cpp
|
||||||
|
MSWindowsServerTaskBarReceiver.h
|
||||||
|
resource.h
|
||||||
tb_error.ico
|
tb_error.ico
|
||||||
tb_idle.ico
|
tb_idle.ico
|
||||||
tb_run.ico
|
tb_run.ico
|
||||||
tb_wait.ico
|
tb_wait.ico
|
||||||
${server_source_name}.exe.manifest
|
${PROJECT_BINARY_DIR}/src/version.rc
|
||||||
${PROJECT_BINARY_DIR}/src/version.rc)
|
)
|
||||||
elseif(APPLE)
|
elseif(APPLE)
|
||||||
file(GLOB arch_headers "OSX*.h")
|
set(PLATFORM_SOURCES
|
||||||
file(GLOB arch_sources "OSX*.cpp")
|
OSXServerTaskBarReceiver.cpp
|
||||||
|
OSXServerTaskBarReceiver.h
|
||||||
|
)
|
||||||
elseif(UNIX)
|
elseif(UNIX)
|
||||||
file(GLOB arch_headers "XWindows*.h")
|
set(PLATFORM_SOURCES
|
||||||
file(GLOB arch_sources "XWindows*.cpp")
|
XWindowsServerTaskBarReceiver.cpp
|
||||||
|
XWindowsServerTaskBarReceiver.h
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND sources ${arch_sources})
|
add_executable(${target} ${PLATFORM_SOURCES} "${server_source_name}.cpp")
|
||||||
list(APPEND headers ${arch_headers})
|
|
||||||
|
|
||||||
if(ADD_HEADERS_TO_SOURCES)
|
|
||||||
list(APPEND sources ${headers})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_executable(${target} ${sources})
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${target}
|
${target}
|
||||||
arch
|
arch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue