Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[f18679]: iAIDA / src / CMakeLists.txt Maximize Restore History

Download this file

CMakeLists.txt    38 lines (29 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
## iAIDA/src
include_directories( ${PROJECT_BINARY_DIR} ${extIncDirs} )
# build the lib here
file(GLOB srcFilesAIDA "*.cpp")
if ( ROOT_FOUND )
file (GLOB srcFilesROOT "AIDA_ROOT/*.cpp")
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
message ( "... added files for root ")
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
endif ( ROOT_FOUND )
if ( GRACE_FOUND )
file (GLOB srcFilesPlot "AIDAGracePlotter/*.cpp")
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
message ( "... added files for Grace plotter ")
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
endif ( GRACE_FOUND )
if ( CERNLIB_FOUND )
file (GLOB srcFilesHbook "AIDA_HBook/*.cpp")
IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
message ( "... added files for HBook ")
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
endif ( CERNLIB_FOUND )
set( srcFiles ${srcFilesAIDA} ${srcFilesROOT} ${srcFilesPlot} ${srcFilesHbook} )
add_library(iAIDA SHARED ${srcFiles})
target_link_libraries( iAIDA ${EXTERNAL_LIBS} ${EXTERNAL_LIBS} -ldl)
INSTALL(TARGETS iAIDA
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)