make PRgeHandler to a shared libs. Adopted Nonlocal and PMagProximity accordingly.
This commit is contained in:
18
src/external/Nonlocal/CMakeLists.txt
vendored
18
src/external/Nonlocal/CMakeLists.txt
vendored
@@ -2,7 +2,6 @@
|
||||
|
||||
#--- generate necessary dictionaries ------------------------------------------
|
||||
set(MUSRFIT_INC ${CMAKE_SOURCE_DIR}/src/include)
|
||||
set(MUSRFIT_CLASSES ${CMAKE_SOURCE_DIR}/src/classes)
|
||||
set(NONLOCAL_INC ${CMAKE_SOURCE_DIR}/src/external/Nonlocal)
|
||||
# ROOT requires that the dictonary header files are found at configuration time.
|
||||
# Hence, target_include_directories cannot be used here because, targets are
|
||||
@@ -31,17 +30,6 @@ root_generate_dictionary(
|
||||
LINKDEF PNL_StartupHandlerLinkDef.h
|
||||
MODULE PNL_StartupHandler
|
||||
)
|
||||
root_generate_dictionary(
|
||||
PRgeHandlerDict
|
||||
PRgeHandler.h
|
||||
OPTIONS
|
||||
-I${NONLOCAL_INC}
|
||||
-I${MUSRFIT_INC}
|
||||
-I${CMAKE_CURRENT_SOURCE_DIR}
|
||||
-inlineInputHeader
|
||||
LINKDEF ${MUSRFIT_INC}/PRgeHandlerLinkDef.h
|
||||
MODULE PRgeHandler
|
||||
)
|
||||
|
||||
#--- create pkg-config info ---------------------------------------------------
|
||||
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
||||
@@ -56,8 +44,6 @@ configure_file("PNL_PippardFitter.pc.in" "PNL_PippardFitter.pc" @ONLY)
|
||||
add_library(PNL_PippardFitter SHARED
|
||||
PNL_PippardFitter.cpp
|
||||
PNL_PippardFitterDict.cxx
|
||||
${MUSRFIT_CLASSES}/PRgeHandler.cpp
|
||||
PRgeHandlerDict.cxx
|
||||
PNL_StartupHandler.cpp
|
||||
PNL_StartupHandlerDict.cxx
|
||||
)
|
||||
@@ -76,7 +62,7 @@ set_target_properties(PNL_PippardFitter
|
||||
)
|
||||
|
||||
#--- add library dependencies -------------------------------------------------
|
||||
target_link_libraries(PNL_PippardFitter ${Boost_LIBRARIES} ${FFTW3_LIBRARY} ${ROOT_LIBRARIES} PUserFcnBase)
|
||||
target_link_libraries(PNL_PippardFitter ${Boost_LIBRARIES} ${FFTW3_LIBRARY} ${ROOT_LIBRARIES} PRgeHandler PUserFcnBase)
|
||||
|
||||
#--- install PNL_PippardFitter solib ------------------------------------------
|
||||
install(TARGETS PNL_PippardFitter DESTINATION lib)
|
||||
@@ -86,8 +72,6 @@ install(
|
||||
FILES ${CMAKE_CURRENT_BINARY_DIR}/libPNL_PippardFitter_rdict.pcm
|
||||
${CMAKE_CURRENT_BINARY_DIR}/libPNL_PippardFitter.rootmap
|
||||
${CMAKE_CURRENT_BINARY_DIR}/libPNL_StartupHandler_rdict.pcm
|
||||
${CMAKE_CURRENT_BINARY_DIR}/libPRgeHandler.rootmap
|
||||
${CMAKE_CURRENT_BINARY_DIR}/libPRgeHandler_rdict.pcm
|
||||
${CMAKE_CURRENT_BINARY_DIR}/libPNL_StartupHandler.rootmap
|
||||
DESTINATION lib
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user