From 0861ddf3ba0b7e6a486e0d9884a0dfe3f7ca1c34 Mon Sep 17 00:00:00 2001 From: fallenoak Date: Tue, 8 Sep 2020 21:22:23 -0500 Subject: [PATCH] chore(build): prepare for platform-specific files --- storm/CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/storm/CMakeLists.txt b/storm/CMakeLists.txt index 16ff1a9..11a759c 100644 --- a/storm/CMakeLists.txt +++ b/storm/CMakeLists.txt @@ -1,4 +1,14 @@ -file(GLOB_RECURSE STORM_SOURCES "*.cpp") +file(GLOB STORM_SOURCES + "*.cpp" +) + +if(PLATFORM_MAC) + file(GLOB STORM_MAC_SOURCES + "mac/*.cpp" + "mac/*.mm" + ) + list(APPEND STORM_SOURCES ${STORM_MAC_SOURCES}) +endif() add_library(storm STATIC ${STORM_SOURCES}