Commit 09e3e3de authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Merge branch 'FIPPS_Spy' into 'preprod'

Add Fipps spy

See merge request IPNL_GAMMA/gammaware!44
parents 92c24888 9baa2e00
Pipeline #38414 passed with stages
in 5 minutes and 45 seconds
......@@ -6,6 +6,7 @@
# Add modules
#
add_subdirectory (cubix)
add_subdirectory (fipps_spy)
......
#
# cmake file for a standalone program
#
# J. Dudouet
#
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
set(CMAKE_INSTALL_MESSAGE LAZY)
#
# NAME OF THE PROGRAM : means main is in PROG_NAME.[c,cpp ...] and it gives exec with name PROG_NAME
SET(PROG_NAME FIPPSSpy)
SET(Lib_NAME FIPPSSpyCore)
#
PROJECT(${PROG_NAME})
MESSAGE("[GW] + root/gui/${PROJECT_NAME}")
#Set C++11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pthread -Wno-unused-parameter -Wno-sign-compare" )
######################
### Link libraries ###
######################
# root
INCLUDE_DIRECTORIES( ${ROOT_INCLUDE_DIR} )
LINK_DIRECTORIES( ${ROOT_LIBRARY_DIR} )
SET(EXTRA_EXTERNAL_LIBRARIES ${EXTRA_EXTERNAL_LIBRARIES})
# gw
set(EXTRA_INTERNAL_LIBRARIES GWPHYSICS )
####################
### define files ###
####################
SET(SourceDir ${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories(${SourceDir})
SET( PROG_NAME_SRCS ${SourceDir}/FIPPSSpy.cpp )
file(GLOB sources ${SourceDir}/*.cpp)
list(REMOVE_ITEM sources ${PROG_NAME_SRCS})
file(GLOB headers ${SourceDir}/*.h)
list(REMOVE_ITEM headers ${SourceDir}/LinkDef.h)
file(GLOB icons ${CMAKE_CURRENT_SOURCE_DIR}/icons/*)
#######################
### Root dictionary ###
#######################
ROOT_GENERATE_DICTIONARY(G__${Lib_NAME} ${headers} MODULE ${Lib_NAME} LINKDEF ${SourceDir}/LinkDef.h )
########################
### FIPPSSpy Library ###
########################
#---Create a shared library with geneated dictionary
add_library(${Lib_NAME} SHARED ${sources} G__${Lib_NAME}.cxx)
target_link_libraries(${Lib_NAME} ${EXTRA_EXTERNAL_LIBRARIES} ${EXTRA_INTERNAL_LIBRARIES})
########################
### FIPPSSpy Program ###
########################
#---Create a main program using the library
add_executable(${PROG_NAME} ${PROG_NAME_SRCS})
target_link_libraries(${PROG_NAME} ${Lib_NAME})
####################
### Instal Files ###
####################
install(TARGETS ${PROG_NAME} ${Lib_NAME} RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib COMPONENT libraries)
install(FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/lib${Lib_NAME}_rdict.pcm DESTINATION lib)
install(FILES ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/lib${Lib_NAME}.rootmap DESTINATION lib)
install(FILES ${headers} DESTINATION include COMPONENT headers)
install(FILES ${icons} DESTINATION icons COMPONENT icons)
This source diff could not be displayed because it is too large. You can view the blob instead.
/* XPM */
static char *dummy[]={
"21 21 5 1",
"a c #000000",
"b c #00ffff",
". c #c0c0c0",
"c c #ffff00",
"# c #ffffff",
".....................",
".###################.",
".#aa#########ab##ab#.",
".#aa##########abab##.",
".#aa###########ab###.",
".#aa##########abab##.",
".#aa#########ab##ab#.",
".#aa################.",
".#aa################.",
".#aa##aa###aa#######.",
".#aa#acca#acca######.",
".#aa#acca#acca######.",
".#aa#acca#acca######.",
".#aa##aa###aaa######.",
".#aa#########a######.",
".#aa#######aa#######.",
".#aa################.",
".#aaaaaaaaaaaaaa####.",
".#aaaaaaaaaaaaaa####.",
".###################.",
"....................."};
/* XPM */
static char *dummy[]={
"21 21 5 1",
"a c #000000",
"b c #00ffff",
". c #c0c0c0",
"c c #ffff00",
"# c #ffffff",
".....................",
".###################.",
".#aa#########ab##ab#.",
".#aa##########abab##.",
".#aa###########ab###.",
".#aa###########ab###.",
".#aa###########ab###.",
".#aa###########b####.",
".#aa################.",
".#aa##aa###aa#######.",
".#aa#acca#acca######.",
".#aa#acca#acca######.",
".#aa#acca#acca######.",
".#aa##aa###aaa######.",
".#aa#########a######.",
".#aa#######aa#######.",
".#aa################.",
".#aaaaaaaaaaaaaa####.",
".#aaaaaaaaaaaaaa####.",
".###################.",
"....................."};
/* XPM */
static char *dummy[]={
"21 21 5 1",
"a c #000000",
"b c #00ffff",
". c #c0c0c0",
"c c #ffff00",
"# c #ffffff",
".....................",
".###################.",
".#aa#########aaaaaa#.",
".#aa#########bbbbab#.",
".#aa###########aab##.",
".#aa##########ab####.",
".#aa#########aaaaaa#.",
".#aa#########bbbbbb#.",
".#aa################.",
".#aa##aa###aa#######.",
".#aa#acca#acca######.",
".#aa#acca#acca######.",
".#aa#acca#acca######.",
".#aa##aa###aaa######.",
".#aa#########a######.",
".#aa#######aa#######.",
".#aa################.",
".#aaaaaaaaaaaaaa####.",
".#aaaaaaaaaaaaaa####.",
".###################.",
"....................."};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment