File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,23 @@ INCLUDE_DIRECTORIES (
29
29
30
30
ADD_EXECUTABLE (msexport MACOSX_BUNDLE ${MSEXPORT_SRCS} ${MSEXPORT_MOC_SRCS} )
31
31
32
+ # This sets runpath to the installation directory
33
+ SET_TARGET_PROPERTIES (msexport PROPERTIES
34
+ INSTALL_RPATH ${CMAKE_INSTALL_PREFIX} /lib
35
+ BUILD_WITH_INSTALL_RPATH true
36
+ )
37
+
38
+ # Uncomment this to set runpath to the directory path specified at compile time
39
+ #SET_TARGET_PROPERTIES(msexport PROPERTIES
40
+ # INSTALL_RPATH_USE_LINK_PATH true
41
+ #)
42
+
43
+ # Uncomment this to set runpath relative to executable
44
+ #SET_TARGET_PROPERTIES(msexport PROPERTIES
45
+ # LINK_FLAGS "-Wl,-rpath,'\$\$ORIGIN/../lib'"
46
+ #)
47
+
48
+
32
49
TARGET_LINK_LIBRARIES (msexport
33
50
${QT_LIBRARIES}
34
51
${PYTHON_LIBRARIES}
You can’t perform that action at this time.
0 commit comments