diff dep/animia/CMakeLists.txt @ 137:69db40272acd

dep/animia: [WIP] huge refactor this WILL NOT compile, because lots of code has been changed and every API in the original codebase has been removed. note that this api setup is not exactly permanent...
author Paper <mrpapersonic@gmail.com>
date Fri, 10 Nov 2023 13:52:47 -0500
parents eab9e623eb84
children 28842a8d0c6b
line wrap: on
line diff
--- a/dep/animia/CMakeLists.txt	Fri Nov 10 10:07:01 2023 -0500
+++ b/dep/animia/CMakeLists.txt	Fri Nov 10 13:52:47 2023 -0500
@@ -1,26 +1,35 @@
 cmake_minimum_required(VERSION 3.9)
 project(animia)
 set(SRC_FILES
-	src/main.cpp
+	# any non-platform-specific files go here
+	src/animia.cc
+	src/matroska.cc
+	src/player.cc
+	src/util.cc
 )
 if(LINUX)
-	list(APPEND SRC_FILES src/linux.cpp)
+	list(APPEND SRC_FILES
+		# linux
+		src/linux/fd.cc
+	)
 elseif(UNIX) # this won't run on Linux
-	list(APPEND SRC_FILES src/bsd.cpp)
+	list(APPEND SRC_FILES
+		# bsd
+		src/bsd/fd.cc
+	)
 elseif(WIN32)
-	list(APPEND SRC_FILES src/win32.cpp)
+	list(APPEND SRC_FILES
+		# win32
+		src/platform/win32.cc
+		src/platform/win32/fd.cc
+		src/platform/win32/ui_auto.cc
+		src/platform/win32/util.cc
+		src/platform/win32/win.cc
+	)
 endif()
 add_library(animia SHARED ${SRC_FILES})
 set_target_properties(animia PROPERTIES
-    PUBLIC_HEADER animia/animia.h CXX_STANDARD 11)
+	PUBLIC_HEADER include/animia.h
+	CXX_STANDARD 17
+)
 target_include_directories(animia PRIVATE include)
-option(BUILD_TESTS "Build tests" OFF)
-
-if(BUILD_TESTS)
-	project(test LANGUAGES CXX)
-	add_executable(test test/main.cpp)
-
-	target_include_directories(test PUBLIC include)
-	target_link_libraries(test PUBLIC animia)
-	set_target_properties(test PROPERTIES CXX_STANDARD 17)
-endif()