diff CMakeLists.txt @ 364:99c961c91809

core: refactor out byte stream into its own file easy dubs
author Paper <paper@paper.us.eu.org>
date Tue, 16 Jul 2024 21:15:59 -0400
parents 373f92c35bec
children 8d45d892be88
line wrap: on
line diff
--- a/CMakeLists.txt	Mon Jul 15 01:33:51 2024 -0400
+++ b/CMakeLists.txt	Tue Jul 16 21:15:59 2024 -0400
@@ -85,6 +85,7 @@
 	src/core/anime.cc
 	src/core/anime_db.cc
 	src/core/anime_season.cc
+	src/core/byte_stream.cc
 	src/core/config.cc
 	src/core/date.cc
 	src/core/filesystem.cc
@@ -204,6 +205,15 @@
 ###########################################################################
 # Platform specific stuff
 
+# Endianness
+include (TestBigEndian)
+TEST_BIG_ENDIAN(IS_BIG_ENDIAN)
+if(IS_BIG_ENDIAN)
+	list(APPEND DEFINES BYTE_ORDER_BIG)
+else()
+	list(APPEND DEFINES BYTE_ORDER_LITTLE)
+endif()
+
 # This is also used in the Win32 rc file
 set(RC_INFO_STRING "A lightweight anime tracker built with Qt.")