Skip to content

Commit c53c6a1

Browse files
authored
Try new solution
1 parent eb5b908 commit c53c6a1

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

unittests/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ if(WIN32)
3434
set_property(TARGET ${name} APPEND_STRING PROPERTY LINK_FLAGS "${MSVC_EXPORTS}")
3535
else()
3636
if(EMSCRIPTEN)
37-
add_llvm_library(${name}
38-
DISABLE_LLVM_LINK_LLVM_DYLIB
39-
LINK_LIBS
40-
${gtest_libs} ${link_libs}
41-
)
37+
target_link_libraries(${name} PUBLIC ${ARG_LIBRARIES} ${gtest_libs} clangCppInterOp)
4238
else()
4339
target_link_libraries(${name} PUBLIC ${ARG_LIBRARIES} ${gtest_libs} pthread)
4440
endif()

unittests/CppInterOp/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ set(LLVM_LINK_COMPONENTS
22
Support
33
)
44

5+
add_llvm_library(CppInterOpTests
6+
DISABLE_LLVM_LINK_LLVM_DYLIB
7+
CUDATest.cpp
8+
EnumReflectionTest.cpp
9+
FunctionReflectionTest.cpp
10+
InterpreterTest.cpp
11+
JitTest.cpp
12+
ScopeReflectionTest.cpp
13+
TypeReflectionTest.cpp
14+
Utils.cpp
15+
VariableReflectionTest.cpp
16+
)
517
add_cppinterop_unittest(CppInterOpTests
618
CUDATest.cpp
719
EnumReflectionTest.cpp

0 commit comments

Comments
 (0)