Skip to content

Commit 175727b

Browse files
committed
Emscripten builds; Major CMake reduction
1 parent 29024cf commit 175727b

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

source/Runtime.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,8 @@ namespace Langulus::Entity
352352
// File postfix
353353
#if LANGULUS_OS(WINDOWS)
354354
path += ".dll";
355-
#elif LANGULUS_OS(LINUX)
356-
path += ".so";
357-
#elif LANGULUS_COMPILER(WASM)
358-
path += ".wasm";
359355
#else
360-
#error Unsupported OS
356+
path += ".so";
361357
#endif
362358

363359
// Make sure string ends with terminator

test/CMakeLists.txt

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ file(GLOB_RECURSE
44
*.cpp
55
)
66

7-
add_executable(LangulusEntityTest ${LANGULUS_ENTITY_TEST_SOURCES})
8-
9-
target_link_libraries(LangulusEntityTest
10-
PRIVATE LangulusEntity
11-
Catch2
12-
)
13-
14-
add_test(
15-
NAME LangulusEntityTest
16-
COMMAND LangulusEntityTest
7+
add_langulus_test(LangulusEntityTest
8+
SOURCES ${LANGULUS_ENTITY_TEST_SOURCES}
9+
LIBRARIES LangulusEntity
1710
)

0 commit comments

Comments
 (0)