aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-10-12 21:54:46 +0800
committercrupest <crupest@outlook.com>2022-10-12 21:54:46 +0800
commit5feb199afc45bac6d1cd50323f28da61ce211dd0 (patch)
treef60e3068bc47fbb4c7e083c4a0926882315fa966 /test
parent49408e92e3828eb0287978c50605690b7c20c784 (diff)
downloadcru-5feb199afc45bac6d1cd50323f28da61ce211dd0.tar.gz
cru-5feb199afc45bac6d1cd50323f28da61ce211dd0.tar.bz2
cru-5feb199afc45bac6d1cd50323f28da61ce211dd0.zip
Implement file stream constructor on emscripten.
Diffstat (limited to 'test')
-rw-r--r--test/common/CMakeLists.txt2
-rw-r--r--test/platform/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/common/CMakeLists.txt b/test/common/CMakeLists.txt
index b3436105..85049357 100644
--- a/test/common/CMakeLists.txt
+++ b/test/common/CMakeLists.txt
@@ -7,7 +7,7 @@ add_executable(CruBaseTest
)
target_link_libraries(CruBaseTest PRIVATE CruBase CruTestBase)
-if (UNIX)
+if (UNIX AND NOT EMSCRIPTEN)
target_sources(CruBaseTest PRIVATE
platform/unix/UnixFileStreamTest.cpp
)
diff --git a/test/platform/CMakeLists.txt b/test/platform/CMakeLists.txt
index 01f6966b..6a26214b 100644
--- a/test/platform/CMakeLists.txt
+++ b/test/platform/CMakeLists.txt
@@ -8,7 +8,7 @@ if (WIN32)
add_subdirectory(graphics/direct2d)
endif()
-if (UNIX)
+if (UNIX AND NOT EMSCRIPTEN)
add_subdirectory(graphics/cairo)
endif()