0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00
easy_profiler/profiler_gui/CMakeLists.txt

67 lines
1.8 KiB
CMake
Raw Normal View History

2016-06-26 12:48:59 +03:00
#set(CMAKE_PREFIX_PATH f:/qt/5.5/5.6/msvc2013_64/lib/cmake)
2016-04-29 16:13:32 +03:00
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
2016-04-29 16:13:32 +03:00
set(CMAKE_INCLUDE_CURRENT_DIR ON)
2016-12-02 00:08:25 +03:00
find_package(Qt5Widgets)
2017-06-08 17:13:32 +03:00
if (Qt5Widgets_FOUND)
if (NOT("${CMAKE_BUILD_TYPE}" STREQUAL "Debug") AND WIN32)
set(APPLICATION_PLATFORM WIN32)
endif ()
add_executable(profiler_gui ${APPLICATION_PLATFORM}
main.cpp
arbitrary_value_inspector.h
arbitrary_value_inspector.cpp
2017-06-08 17:13:32 +03:00
blocks_graphics_view.h
blocks_graphics_view.cpp
blocks_tree_widget.h
blocks_tree_widget.cpp
2017-11-23 22:01:44 +03:00
common_types.h
2017-06-08 17:13:32 +03:00
descriptors_tree_widget.h
descriptors_tree_widget.cpp
easy_chronometer_item.h
easy_chronometer_item.cpp
easy_frame_rate_viewer.h
easy_frame_rate_viewer.cpp
easy_graphics_item.h
easy_graphics_item.cpp
easy_graphics_scrollbar.h
easy_graphics_scrollbar.cpp
easy_qtimer.h
easy_qtimer.cpp
globals.h
globals.cpp
globals_qobjects.cpp
main_window.h
main_window.cpp
tree_widget_item.h
tree_widget_item.cpp
tree_widget_loader.h
tree_widget_loader.cpp
resources.qrc
resources.rc
)
2017-06-08 17:13:32 +03:00
target_link_libraries(profiler_gui Qt5::Widgets easy_profiler)
if (WIN32)
target_compile_definitions(profiler_gui PRIVATE -D_WIN32_WINNT=0x0600)
endif ()
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 ()
2017-06-08 17:13:32 +03:00
message(STATUS "INFO\n\n\tQt5 not found! Generating EasyProfiler projects without GUI.\n")
endif ()
2016-12-02 00:08:25 +03:00