Changeset 19294
- Timestamp:
- 10/24/18 21:02:25 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19287 r19294 56 56 # Inlclude the main source AND build dir itself 57 57 #SET(CMAKE_INCLUDE_CURRENT_DIR ON) 58 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/dictionary) 58 59 59 60 # =========== help2man ============ … … 110 111 111 112 #IF(EXISTS "$ENV{ROOTSYS}/ROOTConfig.cmake") 112 IF(DEFINED $ENV{CMAKE_PREFIX_PATH}) # -- This is supposed to be root 6--113 IF(DEFINED ENV{CMAKE_PREFIX_PATH}) # -- This is if compiled with cmake -- 113 114 # You need to tell CMake where to find the ROOT installation. This can be done in a number of ways: 114 115 # - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake … … 183 184 SEPARATE_ARGUMENTS(_HEADERS) 184 185 185 ROOT_GENERATE_DICTIONARY(dictionary/${_CINT} ${_HEADERS} ${_CINT}Incl.h LINKDEF ${ _CINT}LinkDef.h OPTIONS -p)186 ROOT_GENERATE_DICTIONARY(dictionary/${_CINT} ${_HEADERS} ${_CINT}Incl.h LINKDEF ${subdir}/${_CINT}LinkDef.h OPTIONS -p -D__MARS__ -DHAVE_ZLIB) 186 187 TARGET_SOURCES(mars PRIVATE dictionary/${_CINT}.cxx ${_SRCLIST}) 187 188 … … 241 242 INCLUDE_DIRECTORIES(${DIRECTORIES} mcore .) 242 243 243 ROOT_GENERATE_DICTIONARY(dictionary/ MARS244 factofits.h245 factfits.h246 DrsCalib.h247 PixelMap.h248 Interpolator2D.h249 nova.h250 Prediction.h244 ROOT_GENERATE_DICTIONARY(dictionary/Core 245 mcore/factofits.h 246 mcore/factfits.h 247 mcore/DrsCalib.h 248 mcore/PixelMap.h 249 mcore/Interpolator2D.h 250 mcore/nova.h 251 mcore/Prediction.h 251 252 MIncl.h 252 253 LINKDEF MLinkDef.h 253 254 OPTIONS -p -D__MARS__ -DHAVE_ZLIB) 254 255 255 SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/dictionary) 256 ADD_LIBRARY(mars SHARED dictionary/MARS.cxx) # CMAKE_POSITION_INDEPENDENT_CODE 256 ADD_LIBRARY(mars SHARED dictionary/Core.cxx) # CMAKE_POSITION_INDEPENDENT_CODE 257 257 TARGET_LINK_LIBRARIES(mars 258 258 ZLIB::ZLIB
Note:
See TracChangeset
for help on using the changeset viewer.