File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 19
19
20
20
include (MMSolverUtils )
21
21
22
- set (target_exe_name "mmsolver-lensdistortion" )
22
+ set (lensdistortion_exe_name "mmsolver-lensdistortion" )
23
23
24
24
set (source_files
25
25
${CMAKE_CURRENT_SOURCE_DIR} /main.cpp
26
26
)
27
27
28
28
# Add test executable using the C++ bindings.
29
- add_executable (${target_exe_name } ${source_files} )
29
+ add_executable (${lensdistortion_exe_name } ${source_files} )
30
30
31
31
# MM Solver standalone libraries.
32
32
find_package (mmsolverlibs_cpp REQUIRED )
33
- target_link_libraries (${target_exe_name}
34
- PRIVATE mmsolverlibs_cpp::mmsolverlibs_cpp
33
+ find_package (mmsolverlibs_rust REQUIRED )
34
+
35
+ target_link_libraries (${lensdistortion_exe_name}
36
+ # The order of these libraries matters. See similar
37
+ # 'target_link_libraries()' in '${PROJECT_ROOT}/src/CMakeLists.txt'.
38
+ PUBLIC mmsolverlibs_rust::mmsolverlibs_rust
39
+ PUBLIC mmsolverlibs_cpp::mmsolverlibs_cpp
40
+
41
+ PRIVATE ${rust_depend_on_libraries}
35
42
)
36
43
37
- target_include_directories (${target_exe_name }
44
+ target_include_directories (${lensdistortion_exe_name }
38
45
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
39
46
40
47
# For generated 'buildConstant.h' file.
41
48
PRIVATE ${CMAKE_BINARY_DIR} /include
42
49
)
43
50
44
- install_target_executable_to_module (${target_exe_name } "${MODULE_FULL_NAME} " )
51
+ install_target_executable_to_module (${lensdistortion_exe_name } "${MODULE_FULL_NAME} " )
You can’t perform that action at this time.
0 commit comments