|
Last change
on this file since 1968 was 1968, checked in by Takeshi Nakazato, 15 years ago |
New Development: No
JIRA Issue: Yes CAS-2668
Ready for Test: Yes
Interface Changes: No
What Interface Changed: Please list interface changes
Test Programs: List test programs
Put in Release Notes: Yes/No
Module(s): Module Names change impacts.
Description: Describe your changes here...
Defined standalone build mode.
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | ###
|
|---|
| 2 | # CMakeLists.txt for ASAP module
|
|---|
| 3 | ###
|
|---|
| 4 |
|
|---|
| 5 | # minimum requirement for cmake version
|
|---|
| 6 | cmake_minimum_required( VERSION 2.8 )
|
|---|
| 7 |
|
|---|
| 8 | # options
|
|---|
| 9 | option( USE_LIBCASACORE
|
|---|
| 10 | "set ON to use libcasacore.so instead of libcasa_*.so"
|
|---|
| 11 | OFF )
|
|---|
| 12 | option( STANDALONE
|
|---|
| 13 | "set ON to build standalone mode"
|
|---|
| 14 | OFF )
|
|---|
| 15 | message( STATUS "USE_LIBCASACORE = " ${USE_LIBCASACORE} )
|
|---|
| 16 | message( STATUS "STANDALONE = " ${STANDALONE} )
|
|---|
| 17 |
|
|---|
| 18 | #
|
|---|
| 19 | # mode specific settings
|
|---|
| 20 | #
|
|---|
| 21 | # STANDALONE=ON standalone build
|
|---|
| 22 | # STANDALONE=OFF build with casa
|
|---|
| 23 | #
|
|---|
| 24 | set( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake" )
|
|---|
| 25 | message( STATUS "CMAKE_MODULE_PATH = " ${CMAKE_MODULE_PATH} )
|
|---|
| 26 | if( STANDALONE )
|
|---|
| 27 | include( standalone )
|
|---|
| 28 | else()
|
|---|
| 29 | include( withcasa )
|
|---|
| 30 | endif()
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 | #
|
|---|
| 34 | # common include path
|
|---|
| 35 | #
|
|---|
| 36 | include_directories( ${CASACORE_INCLUDE_DIR}
|
|---|
| 37 | ${Boost_INCLUDE_DIR}
|
|---|
| 38 | ${PYTHON_INCLUDE_DIRS}
|
|---|
| 39 | ${WCSLIB_INCLUDE_DIR}
|
|---|
| 40 | ${CFITSIO_INCLUDE_DIRS}
|
|---|
| 41 | ${RPFITS_INCLUDE_DIRS} )
|
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 | #
|
|---|
| 45 | # install directory
|
|---|
| 46 | #
|
|---|
| 47 | set( EXEC_INSTALL_DIR bin )
|
|---|
| 48 | set( LIB_INSTALL_DIR lib )
|
|---|
| 49 | set( PYTHON_INSTALL_DIR python/${PYTHONV}/asap )
|
|---|
| 50 | set( SHARED_INSTALL_DIR share/asap )
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | #
|
|---|
| 54 | # libraries and executables
|
|---|
| 55 | #
|
|---|
| 56 | set( ASAPLIB asap )
|
|---|
| 57 | set( PYRAPLIB pyrap )
|
|---|
| 58 | set( ATNFLIB atnf )
|
|---|
| 59 | set( ASAP2TO3 asap2to3 )
|
|---|
| 60 |
|
|---|
| 61 | #
|
|---|
| 62 | # always install by default
|
|---|
| 63 | #
|
|---|
| 64 | add_custom_target( inst ALL ${CMAKE_BUILD_TOOL} install/fast )
|
|---|
| 65 |
|
|---|
| 66 | #
|
|---|
| 67 | # subdirectories
|
|---|
| 68 | #
|
|---|
| 69 | asap_add_subdirectory()
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.