source: trunk/src/CMakeLists.txt@ 2475

Last change on this file since 2475 was 2465, checked in by Takeshi Nakazato, 13 years ago

New Development: No

JIRA Issue: Yes CAS-3960

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: run sd unit/regression tests

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

The library _asap.so is separated into two pieces:

  • _asap.so now contains only python interfaces
  • C++ engines are moved to new library libasap.so

The _asap.so is installed in the same place as before
($CASAROOT/python/2.6/asap) while libasap.so is installed to
$CASAROOT/lib.

File size: 3.3 KB
RevLine 
[1954]1###
2# CMakeLists.txt for _asap.so
3###
4
5# root for libatnf
6set( ASAPROOT ${ASAP_SOURCE_DIR} )
7set( SRCDIR ${ASAPROOT}/src )
8
9# include path
[1957]10include_directories( ${SRCDIR}
11 ${Boost_INCLUDE_DIR}
12 ${ASAPROOT}/external-alma
13 ${ASAPROOT}/external/libpyrap/pyrap-0.3.2 )
[1954]14
15# link path
16link_directories( ${SRCDIR} )
17
[1957]18# use libpyrap
19add_definitions( -DHAVE_LIBPYRAP )
20
[1954]21# source files for libpyrap
22set( ASAP_SRCS
[2393]23 ${SRCDIR}/concurrent.cpp
[1954]24 ${SRCDIR}/MathUtils.cpp
[2289]25 ${SRCDIR}/TableTraverse.cpp
[1954]26 ${SRCDIR}/RowAccumulator.cpp
27 ${SRCDIR}/Logger.cpp
28 ${SRCDIR}/LineCatalog.cpp
29 ${SRCDIR}/STAttr.cpp
30 ${SRCDIR}/STHeader.cpp
31 ${SRCDIR}/STFiller.cpp
32 ${SRCDIR}/STMath.cpp
33 ${SRCDIR}/STSubTable.cpp
34 ${SRCDIR}/STMolecules.cpp
35 ${SRCDIR}/STTcal.cpp
36 ${SRCDIR}/STFocus.cpp
37 ${SRCDIR}/STWeather.cpp
38 ${SRCDIR}/STFrequencies.cpp
39 ${SRCDIR}/STHistory.cpp
40 ${SRCDIR}/STSelector.cpp
41 ${SRCDIR}/STLineFinder.cpp
42 ${SRCDIR}/STFitter.cpp
43 ${SRCDIR}/STFitEntry.cpp
44 ${SRCDIR}/STFit.cpp
45 ${SRCDIR}/STPol.cpp
46 ${SRCDIR}/STPolLinear.cpp
47 ${SRCDIR}/STPolCircular.cpp
48 ${SRCDIR}/STPolStokes.cpp
49 ${SRCDIR}/STWriter.cpp
50 ${SRCDIR}/STAsciiWriter.cpp
51 ${SRCDIR}/STFITSImageWriter.cpp
52 ${SRCDIR}/STAtmosphere.cpp
53 ${SRCDIR}/Scantable.cpp
54 ${SRCDIR}/FillerBase.cpp
55 ${SRCDIR}/NROFiller.cpp
56 ${SRCDIR}/PKSFiller.cpp
[1974]57 ${SRCDIR}/MSFiller.cpp
58 ${SRCDIR}/MSWriter.cpp
[1954]59 ${SRCDIR}/AsapLogSink.cpp
[2321]60 ${SRCDIR}/STUpgrade.cpp
[2356]61 ${SRCDIR}/STGrid.cpp
[1954]62 ${SRCDIR}/Templates.cpp )
63
64set( ASAP_PYSRCS
65 ${SRCDIR}/python_Scantable.cpp
66 ${SRCDIR}/python_STFiller.cpp
67 ${SRCDIR}/python_STSelector.cpp
68 ${SRCDIR}/python_STMath.cpp
69 ${SRCDIR}/python_Fitter.cpp
70 ${SRCDIR}/python_Logger.cpp
71 ${SRCDIR}/python_STLineFinder.cpp
72 ${SRCDIR}/python_STFitEntry.cpp
73 ${SRCDIR}/python_STWriter.cpp
74 ${SRCDIR}/python_LineCatalog.cpp
75 ${SRCDIR}/python_SrcType.cpp
76 ${SRCDIR}/python_STAtmosphere.cpp
77 ${SRCDIR}/python_STCoordinate.cpp
78 ${SRCDIR}/python_Filler.cpp
[1974]79 ${SRCDIR}/python_MSFiller.cpp
80 ${SRCDIR}/python_MSWriter.cpp
[1954]81 ${SRCDIR}/python_LogSink.cpp
[2356]82 ${SRCDIR}/python_STGrid.cpp
[1954]83 ${SRCDIR}/python_asap.cpp )
84
[2465]85add_library( ${ASAPLIB} SHARED ${ASAP_SRCS} )
86add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
[1957]87
88# library name must be _asap.so
[2465]89set_target_properties( ${ASAPPYLIB}
[1954]90 PROPERTIES
[2465]91 PREFIX ""
[1958]92 SUFFIX .so )
[1954]93
[1957]94target_link_libraries( ${ASAPLIB}
[1958]95 #${Boost_LIBRARIES}
[1957]96 ${PYRAPLIB}
97 ${ATNFLIB}
[1958]98 #${CASACORE_LIBRARIES}
[1957]99 ${WCSLIB} )
[2465]100target_link_libraries( ${ASAPPYLIB}
101 ${ASAPLIB} )
[1957]102
[2465]103add_dependencies( inst ${ASAPLIB}
104 ${ASAPPYLIB} )
[1966]105
[1954]106# install directory
107install( TARGETS ${ASAPLIB}
[2465]108 LIBRARY DESTINATION ${LIB_INSTALL_DIR} )
109install( TARGETS ${ASAPPYLIB}
[1954]110 LIBRARY DESTINATION ${PYTHON_INSTALL_DIR} )
[2465]111#if( NOT STANDALONE )
112# execute_process(
113# COMMAND ln -Fs ../${PYTHON_INSTALL_DIR}/_${ASAPLIB}.so ${CMAKE_INSTALL_PREFIX}/lib/_${ASAPLIB}.so
114# OUTPUT_VARIABLE stuff)
115#endif()
Note: See TracBrowser for help on using the repository browser.