File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ jobs:
411
411
cmake --build . --target sphinx-cppinterop --parallel ${{ env.ncpus }}
412
412
else
413
413
cmake --build . --target check-cppinterop --parallel ${{ env.ncpus }}
414
- valgrind --show-error-list=yes --track-origins=yes --error-exitcode=1 unittests/CppInterOp/CppInterOpTests
414
+ valgrind --show-error-list=yes --track-origins=yes --error-exitcode=1 unittests/CppInterOp/CppInterOpTests/unittests/bin/${{ env.BUILD_TYPE }}/CppInterOpTests
415
415
fi
416
416
cd ..
417
417
# We need CB_PYTHON_DIR later
Original file line number Diff line number Diff line change @@ -33,3 +33,9 @@ install
33
33
34
34
# CLion files
35
35
.idea
36
+
37
+ # VSCode files
38
+ .vscode
39
+
40
+ # Default Virtual Environments
41
+ .venv
Original file line number Diff line number Diff line change 1
1
set (LLVM_LINK_COMPONENTS
2
2
Support
3
- )
3
+ )
4
4
5
5
add_cppinterop_unittest (CppInterOpTests
6
6
CUDATest.cpp
@@ -12,21 +12,27 @@ add_cppinterop_unittest(CppInterOpTests
12
12
TypeReflectionTest.cpp
13
13
Utils.cpp
14
14
VariableReflectionTest.cpp
15
- )
15
+ )
16
+
16
17
target_link_libraries (CppInterOpTests
17
18
PRIVATE
18
19
clangCppInterOp
19
- )
20
+ )
21
+
22
+ set_output_directory (CppInterOpTests
23
+ BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /CppInterOpTests/unittests/bin/$<CONFIG>/
24
+ LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /CppInterOpTests/unittests/bin/$<CONFIG>/
25
+ )
20
26
21
27
if (NOT WIN32 )
22
28
set_source_files_properties (VariableReflectionTest.cpp PROPERTIES COMPILE_FLAGS
23
29
"-Wno-pedantic"
24
- )
30
+ )
25
31
endif ()
26
32
27
33
set_source_files_properties (InterpreterTest.cpp PROPERTIES COMPILE_DEFINITIONS
28
34
"LLVM_BINARY_DIR=\" ${LLVM_BINARY_DIR} \" "
29
- )
35
+ )
30
36
export_executable_symbols (CppInterOpTests )
31
37
32
38
unset (LLVM_LINK_COMPONENTS )
@@ -35,10 +41,12 @@ add_cppinterop_unittest(DynamicLibraryManagerTests DynamicLibraryManagerTest.cpp
35
41
target_link_libraries (DynamicLibraryManagerTests
36
42
PRIVATE
37
43
clangCppInterOp
38
- )
39
-
40
- set_output_directory (DynamicLibraryManagerTests BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /TestSharedLib/unittests/bin/$<CONFIG>/ )
44
+ )
41
45
46
+ set_output_directory (DynamicLibraryManagerTests
47
+ BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /TestSharedLib/unittests/bin/$<CONFIG>/
48
+ LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR} /TestSharedLib/unittests/bin/$<CONFIG>/
49
+ )
42
50
add_dependencies (DynamicLibraryManagerTests TestSharedLib )
43
51
#export_executable_symbols_for_plugins(TestSharedLib)
44
52
add_subdirectory (TestSharedLib )
You can’t perform that action at this time.
0 commit comments