diff dep/animia/CMakeLists.txt @ 152:8700806c2cc2

dep/animia: awesome new breaking changes! I'm so tired
author Paper <mrpapersonic@gmail.com>
date Wed, 15 Nov 2023 02:34:59 -0500
parents d8a61e7e2a36
children bd439dd6ffc5
line wrap: on
line diff
--- a/dep/animia/CMakeLists.txt	Tue Nov 14 16:31:21 2023 -0500
+++ b/dep/animia/CMakeLists.txt	Wed Nov 15 02:34:59 2023 -0500
@@ -7,6 +7,7 @@
 	src/util.cc
 	src/strategist.cc
 	src/fd.cc
+	src/win.cc
 )
 
 if(LINUX)
@@ -26,6 +27,15 @@
 	)
 endif()
 
+if(WIN32)
+	list(APPEND SRC_FILES
+		src/win/win32.cc
+		src/util/win32.cc
+	)
+else()
+	# soon x11 and apple stuff will be here...
+endif()
+
 add_library(animia SHARED ${SRC_FILES})
 set_target_properties(animia PROPERTIES
 	PUBLIC_HEADER include/animia.h
@@ -37,6 +47,9 @@
 elseif(LINUX)
 	target_compile_definitions(animia PUBLIC LINUX)
 elseif(UNIX)
+	if(APPLE)
+		target_compile_definitions(animia PUBLIC MACOSX)
+	endif()
 	target_compile_definitions(animia PUBLIC UNIX)
 endif()