0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-26 08:01:51 +08:00

Install profiler_gui and set rpath to ORIGIN

This commit is contained in:
Sergey Yagovtsev 2017-09-01 00:01:38 +03:00
parent ac9a152e26
commit 2c963d8d06
2 changed files with 12 additions and 0 deletions

View File

@ -23,6 +23,8 @@ macro(easy_define_target_option TARGET SOURCE_OPTION TARGET_DEFINITION)
target_compile_options(${TARGET} PUBLIC -D${TARGET_DEFINITION}=${_VALUE})
endmacro()
SET(CMAKE_INSTALL_RPATH "$ORIGIN")
add_subdirectory(easy_profiler_core)
add_subdirectory(profiler_gui)

View File

@ -47,6 +47,16 @@ if (Qt5Widgets_FOUND)
if (MINGW)
target_compile_definitions(profiler_gui PRIVATE -DSTRSAFE_NO_DEPRECATE)
endif ()
install(
TARGETS
profiler_gui
RUNTIME
DESTINATION
bin
)
set_property(TARGET profiler_gui PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE)
else ()
message(STATUS "INFO\n\n\tQt5 not found! Generating EasyProfiler projects without GUI.\n")
endif ()