Changeset 19241 for trunk/Mars
- Timestamp:
- 10/20/18 21:38:27 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19224 r19241 106 106 # --------- config.h ------------- 107 107 108 #CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/config.h.in" "${PROJECT_BINARY_DIR}/config.h") 108 CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/cmake/.rootrc.in" "${PROJECT_BINARY_DIR}/.rootrc") 109 CONFIGURE_FILE("${PROJECT_SOURCE_DIR}/cmake/rootlogon.C.in" "${PROJECT_BINARY_DIR}/rootlogon.C") 110 109 111 #INCLUDE_DIRECTORIES("${PROJECT_BINARY_DIR}") 110 112 … … 123 125 # -lASImage -lMinuit -lHistPainter -lThread 124 126 125 FIND_PACKAGE(ROOT REQUIRED COMPONENTS Gui Minuit )127 FIND_PACKAGE(ROOT REQUIRED COMPONENTS Gui Minuit ASImage HistPainter) 126 128 127 129 … … 246 248 ${ROOT_LIBRARIES}) 247 249 250 ADD_EXECUTABLE(showplot showplot.cc) 251 ADD_EXECUTABLE(showlog showplot.cc) 252 ADD_EXECUTABLE(ceres ceres.cc) 253 TARGET_LINK_LIBRARIES(showplot mars ${ROOT_LIBRARIES}) 254 TARGET_LINK_LIBRARIES(showlog mars ${ROOT_LIBRARIES}) 255 TARGET_LINK_LIBRARIES(ceres mars ${ROOT_LIBRARIES}) 256 248 257 249 258 FOREACH(DIR ${DIRECTORIES}) … … 252 261 ENDFOREACH() 253 262 254 ADD_CUSTOM_COMMAND(TARGET mars POST_BUILD255 COMMAND ln -sf ${PROJECT_BINARY_DIR}/libmars.so ${PROJECT_SOURCE_DIR}/256 COMMENT "Creating symlink for libmars.so to ${PROJECT_BINARY_DIR}")263 #ADD_CUSTOM_COMMAND(TARGET mars POST_BUILD 264 # COMMAND ln -sf ${PROJECT_BINARY_DIR}/libmars.so ${PROJECT_SOURCE_DIR}/ 265 # COMMENT "Creating symlink for libmars.so to ${PROJECT_BINARY_DIR}") 257 266 258 267 #---Create a shared library with geneated dictionary … … 277 286 #INSTALL(TARGETS mars DESTINATION "${CMAKE_INSTALL_BINDIR}") 278 287 INSTALL(TARGETS mars DESTINATION ".") 288 INSTALL(TARGETS showplot DESTINATION ".") 289 INSTALL(TARGETS showlog DESTINATION ".") 290 INSTALL(TARGETS ceres DESTINATION ".") 279 291 INSTALL(FILES .rootrc DESTINATION ".") 280 INSTALL(FILES marslogo.xpm DESTINATION ".")281 292 INSTALL(DIRECTORY macros DESTINATION "." FILES_MATCHING PATTERN "*.C") 282 293 INSTALL(DIRECTORY fact DESTINATION "." FILES_MATCHING PATTERN "*.C")
Note:
See TracChangeset
for help on using the changeset viewer.