build(lib/mt): Explicit Sources

This commit is contained in:
sithlord48 2024-10-23 19:59:53 -04:00 committed by Chris Rizzitello
parent bf96a641bf
commit 75c0b53113

View file

@ -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
# #
@ -14,11 +15,16 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
file(GLOB headers "*.h") add_library(mt STATIC
file(GLOB sources "*.cpp") CondVar.cpp
CondVar.h
if(ADD_HEADERS_TO_SOURCES) Lock.cpp
list(APPEND sources ${headers}) Lock.h
endif() Mutex.cpp
Mutex.h
add_library(mt STATIC ${sources}) Thread.cpp
Thread.h
XMT.cpp
XMT.h
XThread.h
)