From d75b1850e45c1723ecb6df6a8a37fbedb020a61c Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Mon, 9 Dec 2019 05:47:46 +0000 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1697100..eb53226 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,11 +79,23 @@ file(GLOB DETOURS_SRC_SHARED detours/*.cpp ) -file(GLOB OVERLAY_EXPERIMENTAL_SRC_SHARED - overlay_experimental/*.cpp - ImGui/*.cpp - ImGui/impls/*.cpp -) +if(WIN32) + file(GLOB OVERLAY_EXPERIMENTAL_SRC_SHARED + overlay_experimental/*.cpp + overlay_experimental/windows/*.cpp + ImGui/*.cpp + ImGui/impls/*.cpp + ImGui/impls/windows/*.cpp + ) +elseif(UNIX) + file(GLOB OVERLAY_EXPERIMENTAL_SRC_SHARED + overlay_experimental/*.cpp + overlay_experimental/linux/*.cpp + ImGui/*.cpp + ImGui/impls/*.cpp + ImGui/impls/linux/*.cpp + ) +endif() ################################################### # Setup for the steam_api(64).dll / libsteam_api.so