Lines 354-381
add_dependencies(onepcm ${__allTargets})
Link Here
|
354 |
install(FILES ${CMAKE_BINARY_DIR}/etc/allDict.cxx.pch DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}) |
354 |
install(FILES ${CMAKE_BINARY_DIR}/etc/allDict.cxx.pch DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}) |
355 |
install(DIRECTORY ${CMAKE_BINARY_DIR}/etc/dictpch DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}) |
355 |
install(DIRECTORY ${CMAKE_BINARY_DIR}/etc/dictpch DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}) |
356 |
|
356 |
|
357 |
#---hsimple.root---------(use the executable for clearer dependencies and proper return code)--- |
|
|
358 |
if(NOT WIN32) |
359 |
add_custom_target(hsimple ALL DEPENDS tutorials/hsimple.root) |
360 |
add_dependencies(hsimple onepcm) |
361 |
if(WIN32) |
362 |
add_custom_command(OUTPUT tutorials/hsimple.root |
363 |
COMMAND set PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY} && |
364 |
set ROOTIGNOREPREFIX=1 && |
365 |
$<TARGET_FILE:root.exe> -l -q -b -n -x hsimple.C -e return |
366 |
WORKING_DIRECTORY tutorials |
367 |
DEPENDS $<TARGET_FILE:root.exe> Cling Hist Tree Gpad Graf HistPainter move_artifacts) |
368 |
else() |
369 |
add_custom_command(OUTPUT tutorials/hsimple.root |
370 |
COMMAND ${ld_library_path}=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}:$ENV{${ld_library_path}} |
371 |
ROOTIGNOREPREFIX=1 |
372 |
$<TARGET_FILE:root.exe> -l -q -b -n -x hsimple.C -e return |
373 |
WORKING_DIRECTORY tutorials |
374 |
DEPENDS $<TARGET_FILE:root.exe> Cling Hist Tree Gpad Graf HistPainter move_artifacts) |
375 |
endif() |
376 |
install(FILES ${CMAKE_BINARY_DIR}/tutorials/hsimple.root DESTINATION ${CMAKE_INSTALL_TUTDIR} COMPONENT tests) |
377 |
endif() |
378 |
|
379 |
#---version-------------------------------------------------------------------------------------- |
357 |
#---version-------------------------------------------------------------------------------------- |
380 |
if(NOT WIN32) |
358 |
if(NOT WIN32) |
381 |
add_custom_target(version COMMAND ${CMAKE_SOURCE_DIR}/build/unix/makeversion.sh ${CMAKE_BINARY_DIR} |
359 |
add_custom_target(version COMMAND ${CMAKE_SOURCE_DIR}/build/unix/makeversion.sh ${CMAKE_BINARY_DIR} |