source: PSPA/madxPSPA/cmake/install_macros.cmake @ 447

Last change on this file since 447 was 430, checked in by touze, 11 years ago

import madx-5.01.00

File size: 695 bytes
Line 
1
2macro(madx_install_targets)
3    # Installs targets
4    # to the correct locations...
5    install(TARGETS ${ARGN}
6        BUNDLE DESTINATION . 
7        COMPONENT Runtime
8        RUNTIME DESTINATION bin 
9        COMPONENT Runtime
10        LIBRARY DESTINATION lib 
11        COMPONENT Libraries
12        ARCHIVE DESTINATION lib 
13        COMPONENT Libraries
14    )
15endmacro()
16
17macro(madx_install_headers)
18    # This installs the header files to <prefix>/include/madX
19    # We only want this in the development version...
20    if(NOT ${MADX_PATCH_LEVEL} EQUAL 00)
21        install(FILES ${ARGN} 
22                DESTINATION "include/${PROJECT_NAME}"
23                COMPONENT Files)
24    endif()
25endmacro()
Note: See TracBrowser for help on using the repository browser.