Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ include("cmake/source_properties.cmake")
star_add_executable_root4star(asps/rexe)
star_add_executable_stic(asps/staf/sdd/src)
star_add_executable_agetof(asps/Simulation/agetof)
star_add_executable_rts_examples()

# Build libraries containing idl/*.idl table descriptions
star_add_library_table(StDb)
Expand Down
18 changes: 18 additions & 0 deletions cmake/StarCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,24 @@ function(STAR_ADD_EXECUTABLE_STIC star_exec_dir)
VERBATIM)
endfunction()

#
# Build executable tools in RTS_EXAMPLE
#
function(STAR_ADD_EXECUTABLE_RTS_EXAMPLES)
file(GLOB rts_main_files "${STAR_SRC}/StRoot/RTS/src/RTS_EXAMPLE/*.C")
foreach(main_file ${rts_main_files})
get_filename_component(exe ${main_file} NAME_WLE)
add_executable(${exe} ${STAR_SRC}/StRoot/RTS/src/RTS_EXAMPLE/${exe}.C)
target_link_libraries(${exe} RTS ${ROOT_LIBRARIES})
target_include_directories(${exe} BEFORE PRIVATE
"${STAR_SRC}/StRoot/RTS/include"
"${STAR_SRC}/StRoot/RTS/trg/include"
"${STAR_SRC}/StRoot/RTS/src")

install(TARGETS ${exe}
RUNTIME DESTINATION "${STAR_INSTALL_BINDIR}" OPTIONAL)
endforeach()
endfunction()

#
# Some targets require specific treatment due to missing functionality
Expand Down