mirror of
https://github.com/yse/easy_profiler.git
synced 2024-12-26 16:11:02 +08:00
Install profiler_gui and set rpath to ORIGIN
This commit is contained in:
parent
ac9a152e26
commit
2c963d8d06
@ -23,6 +23,8 @@ macro(easy_define_target_option TARGET SOURCE_OPTION TARGET_DEFINITION)
|
|||||||
target_compile_options(${TARGET} PUBLIC -D${TARGET_DEFINITION}=${_VALUE})
|
target_compile_options(${TARGET} PUBLIC -D${TARGET_DEFINITION}=${_VALUE})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
SET(CMAKE_INSTALL_RPATH "$ORIGIN")
|
||||||
|
|
||||||
add_subdirectory(easy_profiler_core)
|
add_subdirectory(easy_profiler_core)
|
||||||
add_subdirectory(profiler_gui)
|
add_subdirectory(profiler_gui)
|
||||||
|
|
||||||
|
@ -47,6 +47,16 @@ if (Qt5Widgets_FOUND)
|
|||||||
if (MINGW)
|
if (MINGW)
|
||||||
target_compile_definitions(profiler_gui PRIVATE -DSTRSAFE_NO_DEPRECATE)
|
target_compile_definitions(profiler_gui PRIVATE -DSTRSAFE_NO_DEPRECATE)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
install(
|
||||||
|
TARGETS
|
||||||
|
profiler_gui
|
||||||
|
RUNTIME
|
||||||
|
DESTINATION
|
||||||
|
bin
|
||||||
|
)
|
||||||
|
|
||||||
|
set_property(TARGET profiler_gui PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
else ()
|
else ()
|
||||||
message(STATUS "INFO\n\n\tQt5 not found! Generating EasyProfiler projects without GUI.\n")
|
message(STATUS "INFO\n\n\tQt5 not found! Generating EasyProfiler projects without GUI.\n")
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user