From 08d3347740e0aaccb50468e885c2a798b9a433e8 Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Wed, 23 Oct 2024 21:38:58 -0400 Subject: [PATCH] build(cmd/deskflow-legacy): Explicit Sources --- src/cmd/deskflow-legacy/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/cmd/deskflow-legacy/CMakeLists.txt b/src/cmd/deskflow-legacy/CMakeLists.txt index 8d2ea8fb5..496b5bda2 100644 --- a/src/cmd/deskflow-legacy/CMakeLists.txt +++ b/src/cmd/deskflow-legacy/CMakeLists.txt @@ -1,4 +1,5 @@ # Deskflow -- mouse and keyboard sharing utility +# Copyright (C) 2024 Chris Rizzitello # Copyright (C) 2012-2024 Symless Ltd. # Copyright (C) 2009-2012 Nick Bolton # @@ -16,14 +17,11 @@ set(target ${LEGACY_BINARY_NAME}) -file(GLOB headers "*.h") -file(GLOB sources "*.cpp") - +add_executable(${target} "${target}.cpp") if(WIN32) - list(APPEND sources ${PROJECT_BINARY_DIR}/src/version.rc) + target_sources(${target} PRIVATE "${PROJECT_BINARY_DIR}/src/version.rc") endif() -add_executable(${target} ${sources}) target_link_libraries( ${target} app