source: PSPA/madxPSPA/cmake/setupExternalProjects.cmake @ 466

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

import madx-5.01.00

File size: 452 bytes
Line 
1
2find_package(PythonInterp)
3if(${CMAKE_VERSION} VERSION_GREATER 2.8 AND PYTHONINTERP_FOUND)
4    option(INCLUDE_PYMAD "Build the external pymad project from pymad.github.com" OFF)
5    if(INCLUDE_PYMAD)
6        include(ExternalProject)
7        include(ExternalProject-pymad)
8        # For pymad to work, we need to force building shared libraries:
9        set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries (.so/.dll)" FORCE)
10    endif()
11endif()
Note: See TracBrowser for help on using the repository browser.