File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Copyright (C) 1995-2026, Rene Brun and Fons Rademakers.
2+ # All rights reserved.
3+ #
4+ # For the licensing terms see $ROOTSYS/LICENSE.
5+ # For the list of contributors see $ROOTSYS/README/CREDITS.
6+
7+ cmake_minimum_required (VERSION 3.10 FATAL_ERROR )
8+
9+ project (RootIDE)
10+
11+ find_package (ROOT REQUIRED )
12+
13+ set (CMAKE_CXX_FLAGS ${ROOT_CXX_FLAGS} )
14+
15+ include_directories (${ROOT_INCLUDE_DIRS} ${CMAKE_CURRENT_SOURCE_DIR} )
16+
17+ set (SOURCES
18+ main.cxx
19+ TGRootIDE.cxx
20+ )
21+
22+ set (HEADERS TGRootIDE.h)
23+
24+ ROOT_GENERATE_DICTIONARY (RIDEDict ${HEADERS} LINKDEF LinkDef.h )
25+ file (COPY ${HEADERS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
26+
27+ add_executable (RIDE ${SOURCES} RIDEDict.cxx )
28+ target_link_libraries (RIDE ROOT::Core ROOT::Rint ROOT::Gui ROOT::GuiHtml ROOT::Thread ROOT::RIO ROOT::Hist ROOT::Gpad )
29+ set_target_properties (RIDE PROPERTIES ENABLE_EXPORTS 1 )
30+ if (MSVC AND NOT CMAKE_GENERATOR MATCHES Ninja)
31+ add_custom_command (TARGET RIDE POST_BUILD
32+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR} /$<CONFIG>/RIDE.exe
33+ ${CMAKE_CURRENT_BINARY_DIR}
34+ )
35+ set_target_properties (RIDE PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE )
36+ endif ()
37+
38+ install (TARGETS RIDE RUNTIME DESTINATION ${PROJECT_NAME} COMPONENT applications)
39+ install (FILES ${HEADERS} DESTINATION ${PROJECT_NAME} COMPONENT headers)
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments