Skip to content
Snippets Groups Projects
Unverified Commit 8dc8c115 authored by Juan Manuel Carmona Loaiza's avatar Juan Manuel Carmona Loaiza :ghost: Committed by GitHub
Browse files

Merge pull request #937 from gpospelov/FindPython

Modern way of finding Python on a system
parents a3878cd5 cc9c06fb
No related branches found
No related tags found
No related merge requests found
Showing
with 45 additions and 38 deletions
...@@ -10,7 +10,7 @@ platform: ...@@ -10,7 +10,7 @@ platform:
environment: environment:
APPVEYOR_RDP_PASSWORD: 7bKajQWvq4uhfpvc! APPVEYOR_RDP_PASSWORD: 7bKajQWvq4uhfpvc!
BOOSTDIR: C:\Libraries\boost_1_67_0 BOOSTDIR: C:\Libraries\boost_1_67_0
PYTHONDIR: C:\Python36-x64 PYTHONDIR: "C:\\Python36-x64"
QTDIR: "C:\\Qt\\5.11\\msvc2017_64" QTDIR: "C:\\Qt\\5.11\\msvc2017_64"
PATH: "%QTDIR%\\bin;%PYTHONDIR%;%PYTHONDIR%\\Scripts;%BOOSTDIR%\\lib64-msvc-14.1;%PATH%" PATH: "%QTDIR%\\bin;%PYTHONDIR%;%PYTHONDIR%\\Scripts;%BOOSTDIR%\\lib64-msvc-14.1;%PATH%"
PYTHONPATH: "%PYTHONDIR%;%PYTHONDIR%\\Lib;%PYTHONDIR%\\Lib\\site-packages;%PYTHONDIR%\\DLLs" PYTHONPATH: "%PYTHONDIR%;%PYTHONDIR%\\Lib;%PYTHONDIR%\\Lib\\site-packages;%PYTHONDIR%\\DLLs"
...@@ -47,7 +47,7 @@ before_build: ...@@ -47,7 +47,7 @@ before_build:
- 7z x %temp%\libfftw3.zip -oC:\projects\deps - 7z x %temp%\libfftw3.zip -oC:\projects\deps
- dir C:\projects\deps - dir C:\projects\deps
- dir C:\projects\deps\include - dir C:\projects\deps\include
- set CMAKE_URL="https://cmake.org/files/v3.12/cmake-3.12.4-win64-x64.zip" - set CMAKE_URL="https://cmake.org/files/v3.17/cmake-3.17.2-win64-x64.zip"
- appveyor DownloadFile %CMAKE_URL% -FileName %temp%\cmake.zip - appveyor DownloadFile %CMAKE_URL% -FileName %temp%\cmake.zip
- 7z x %temp%\cmake.zip -oC:\projects\deps > nul - 7z x %temp%\cmake.zip -oC:\projects\deps > nul
- move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory - move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory
...@@ -60,7 +60,7 @@ build_script: ...@@ -60,7 +60,7 @@ build_script:
- mkdir build - mkdir build
- cd build - cd build
- cmake --version - cmake --version
- cmake -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT=%BOOSTDIR% -DPYTHON_LIBRARY=%PYLIB% -DPYTHON_EXECUTABLE=%PYEXE% -DCMAKE_INCLUDE_PATH=C:/projects/deps/include .. - cmake -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT=%BOOSTDIR% -DPython_LIBRARIES=%PYLIB% -DPython_EXECUTABLE=%PYEXE% -DCMAKE_INCLUDE_PATH=C:/projects/deps/include ..
- cmake --build . --config Release - cmake --build . --config Release
test_script: test_script:
......
FROM scgmlz/bornagain-dev:xenial FROM scgmlz/bornagain-dev:focal
RUN apt install libqt5svg5-dev
ADD . /source ADD . /source
WORKDIR /source WORKDIR /source
docker build -t bornagain/wily -f `dirname $0`/Dockerfile . docker build -t bornagain/focal -f `dirname $0`/Dockerfile .
docker run -d --name dd -it bornagain/wily docker run --security-opt seccomp=unconfined -d --name dd -it bornagain/focal
docker ps -a docker ps -a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# top-level CMakeLists.txt for building BornAgain # top-level CMakeLists.txt for building BornAgain
############################################################################ ############################################################################
cmake_minimum_required(VERSION 3.1 FATAL_ERROR) cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
set(CMAKE_MODULE_PATH set(CMAKE_MODULE_PATH
......
...@@ -68,7 +68,7 @@ if(BORNAGAIN_PYTHON) ...@@ -68,7 +68,7 @@ if(BORNAGAIN_PYTHON)
add_custom_command ( add_custom_command (
OUTPUT ${AUTO_DIR}/libBornAgainCore.py OUTPUT ${AUTO_DIR}/libBornAgainCore.py
COMMAND ${PYTHON_EXECUTABLE} ${WRAP_DIR}/swig/tweaks.py COMMAND ${Python_EXECUTABLE} ${WRAP_DIR}/swig/tweaks.py
${TMP_DIR}/libBornAgainCore.py ${TMP_DIR}/libBornAgainCore.py
${AUTO_DIR}/libBornAgainCore.py ${AUTO_DIR}/libBornAgainCore.py
DEPENDS ${TMP_DIR}/libBornAgainCore.py DEPENDS ${TMP_DIR}/libBornAgainCore.py
...@@ -166,8 +166,8 @@ endif() ...@@ -166,8 +166,8 @@ endif()
if(BORNAGAIN_PYTHON) if(BORNAGAIN_PYTHON)
target_compile_definitions(${library_name} PUBLIC -DBORNAGAIN_PYTHON) target_compile_definitions(${library_name} PUBLIC -DBORNAGAIN_PYTHON)
include_directories(${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR}) include_directories(${Python_INCLUDE_DIRS} ${Python_NumPy_INCLUDE_DIRS})
target_link_libraries(${library_name} ${PYTHON_LIBRARIES}) target_link_libraries(${library_name} ${Python_LIBRARIES})
endif() endif()
if(APPLE AND BORNAGAIN_APPLE_BUNDLE) if(APPLE AND BORNAGAIN_APPLE_BUNDLE)
...@@ -220,8 +220,8 @@ if(WIN32) ...@@ -220,8 +220,8 @@ if(WIN32)
DESTINATION ${destination_lib} COMPONENT Libraries) DESTINATION ${destination_lib} COMPONENT Libraries)
endforeach() endforeach()
get_filename_component(UTF_BASE_NAME ${PYTHON_LIBRARIES} NAME_WE) get_filename_component(UTF_BASE_NAME ${Python_LIBRARIES} NAME_WE)
get_filename_component(UTF_PATH ${PYTHON_EXECUTABLE} PATH) get_filename_component(UTF_PATH ${Python_EXECUTABLE} PATH)
message(STATUS "Python dll: ${UTF_PATH}/${UTF_BASE_NAME}.dll") message(STATUS "Python dll: ${UTF_PATH}/${UTF_BASE_NAME}.dll")
install(FILES ${UTF_PATH}/${UTF_BASE_NAME}.dll install(FILES ${UTF_PATH}/${UTF_BASE_NAME}.dll
DESTINATION ${destination_lib} COMPONENT Libraries) DESTINATION ${destination_lib} COMPONENT Libraries)
......
...@@ -56,7 +56,7 @@ if(BORNAGAIN_PYTHON) ...@@ -56,7 +56,7 @@ if(BORNAGAIN_PYTHON)
add_custom_command ( add_custom_command (
OUTPUT ${AUTO_DIR}/libBornAgainFit.py OUTPUT ${AUTO_DIR}/libBornAgainFit.py
COMMAND ${PYTHON_EXECUTABLE} ${WRAP_DIR}/swig/tweaks.py COMMAND ${Python_EXECUTABLE} ${WRAP_DIR}/swig/tweaks.py
${TMP_DIR}/libBornAgainFit.py ${TMP_DIR}/libBornAgainFit.py
${AUTO_DIR}/libBornAgainFit.py ${AUTO_DIR}/libBornAgainFit.py
DEPENDS ${TMP_DIR}/libBornAgainFit.py DEPENDS ${TMP_DIR}/libBornAgainFit.py
...@@ -109,8 +109,8 @@ target_include_directories(${library_name} PUBLIC ${include_dirs}) ...@@ -109,8 +109,8 @@ target_include_directories(${library_name} PUBLIC ${include_dirs})
target_link_libraries(${library_name} ${RootMinimizers_LIBRARY} ${Boost_LIBRARIES}) target_link_libraries(${library_name} ${RootMinimizers_LIBRARY} ${Boost_LIBRARIES})
if(BORNAGAIN_PYTHON) if(BORNAGAIN_PYTHON)
include_directories(${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR}) include_directories(${Python_INCLUDE_DIRS} ${Python_NumPy_INCLUDE_DIRS})
target_link_libraries(${library_name} ${PYTHON_LIBRARIES}) target_link_libraries(${library_name} ${Python_LIBRARIES})
endif() endif()
# --- custom actions # --- custom actions
......
...@@ -19,6 +19,7 @@ set(include_dirs ${CMAKE_CURRENT_SOURCE_DIR}) ...@@ -19,6 +19,7 @@ set(include_dirs ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${include_dirs}) include_directories(${include_dirs})
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
add_subdirectory (ba3d) add_subdirectory (ba3d)
add_subdirectory (showcase) add_subdirectory (showcase)
......
...@@ -92,7 +92,7 @@ std::unique_ptr<Simulation> CreateRealisticGISASSimulation() ...@@ -92,7 +92,7 @@ std::unique_ptr<Simulation> CreateRealisticGISASSimulation()
// define ROI and masks // define ROI and masks
result->setRegionOfInterest(45.0, 35.0, 120.0, 120.0); result->setRegionOfInterest(45.0, 35.0, 120.0, 120.0);
result->addMask(Rectangle(100, 60, 110, 100)); result->addMask(Rectangle(100, 60, 110, 100));
return result; return std::unique_ptr<Simulation>(result.release());
} }
} // namespace } // namespace
...@@ -110,7 +110,7 @@ std::unique_ptr<Simulation> TestComponents::CreateSimpleGISAS() ...@@ -110,7 +110,7 @@ std::unique_ptr<Simulation> TestComponents::CreateSimpleGISAS()
auto sample = std::unique_ptr<MultiLayer>(CylindersInDWBABuilder().buildSample()); auto sample = std::unique_ptr<MultiLayer>(CylindersInDWBABuilder().buildSample());
result->setSample(*sample); result->setSample(*sample);
return result; return std::unique_ptr<Simulation>(result.release());
} }
//! Creates simulation representing realistic GISAS. //! Creates simulation representing realistic GISAS.
...@@ -151,7 +151,7 @@ std::unique_ptr<Simulation> TestComponents::CreateGiganticGISAS() ...@@ -151,7 +151,7 @@ std::unique_ptr<Simulation> TestComponents::CreateGiganticGISAS()
result->setBeamParameters(1.0 * Units::angstrom, 0.2 * Units::degree, 0.0 * Units::degree); result->setBeamParameters(1.0 * Units::angstrom, 0.2 * Units::degree, 0.0 * Units::degree);
auto sample = std::unique_ptr<MultiLayer>(CylindersInBABuilder().buildSample()); auto sample = std::unique_ptr<MultiLayer>(CylindersInBABuilder().buildSample());
result->setSample(*sample); result->setSample(*sample);
return result; return std::unique_ptr<Simulation>(result.release());
} }
//! Creates simulation representing GISAS with huge wavelength. //! Creates simulation representing GISAS with huge wavelength.
...@@ -174,7 +174,7 @@ std::unique_ptr<Simulation> TestComponents::CreateWavelengthGISAS() ...@@ -174,7 +174,7 @@ std::unique_ptr<Simulation> TestComponents::CreateWavelengthGISAS()
auto sample = std::unique_ptr<MultiLayer>(CylindersInBABuilder().buildSample()); auto sample = std::unique_ptr<MultiLayer>(CylindersInBABuilder().buildSample());
result->setSample(*sample); result->setSample(*sample);
return result; return std::unique_ptr<Simulation>(result.release());
} }
//! Creates simulation representing simple GISAS with MonteCarlo ON. //! Creates simulation representing simple GISAS with MonteCarlo ON.
...@@ -191,5 +191,5 @@ std::unique_ptr<Simulation> TestComponents::CreateMCGISAS() ...@@ -191,5 +191,5 @@ std::unique_ptr<Simulation> TestComponents::CreateMCGISAS()
auto sample = createSampleSpheresDistribution(10); auto sample = createSampleSpheresDistribution(10);
result->setSample(*sample); result->setSample(*sample);
result->getOptions().setMonteCarloIntegration(true, 50); result->getOptions().setMonteCarloIntegration(true, 50);
return result; return std::unique_ptr<Simulation>(result.release());
} }
...@@ -21,5 +21,5 @@ set(tests ${sources}) ...@@ -21,5 +21,5 @@ set(tests ${sources})
list(REMOVE_ITEM tests utils.py) list(REMOVE_ITEM tests utils.py)
foreach(_test ${tests}) foreach(_test ${tests})
add_test(PyCore/${_test} ${PYTHON_EXECUTABLE} ${OUTPUT_DIR}/${_test}) add_test(PyCore/${_test} ${Python_EXECUTABLE} ${OUTPUT_DIR}/${_test})
endforeach() endforeach()
...@@ -13,8 +13,8 @@ set(test_cases ...@@ -13,8 +13,8 @@ set(test_cases
) )
include_directories( include_directories(
${PYTHON_INCLUDE_DIRS} ${Python_INCLUDE_DIRS}
${NUMPY_INCLUDE_DIR} ${Python_NumPy_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/auto/Wrap ${CMAKE_SOURCE_DIR}/auto/Wrap
) )
......
...@@ -33,10 +33,11 @@ bool SysPath::runTest() ...@@ -33,10 +33,11 @@ bool SysPath::runTest()
{ {
// Python build info // Python build info
std::cout << "pythonExecutable(): " << BABuild::pythonExecutable() << std::endl; std::cout << "pythonExecutable(): " << BABuild::pythonExecutable() << std::endl;
std::cout << "pythonInterpreterID(): " << BABuild::pythonInterpreterID() << std::endl;
std::cout << "pythonVersionString(): " << BABuild::pythonVersionString() << std::endl; std::cout << "pythonVersionString(): " << BABuild::pythonVersionString() << std::endl;
std::cout << "pythonLibraries(): " << BABuild::pythonLibraries() << std::endl; std::cout << "pythonLibraries(): " << BABuild::pythonLibraries() << std::endl;
std::cout << "pythonIncludeDirs(): " << BABuild::pythonIncludeDirs() << std::endl; std::cout << "pythonIncludeDirs(): " << BABuild::pythonIncludeDirs() << std::endl;
std::cout << "pythonLibsVersionString(): " << BABuild::pythonLibsVersionString() << std::endl; std::cout << "pythonSiteLib(): " << BABuild::pythonSiteLib() << std::endl;
std::cout << "numpyIncludeDir(): " << BABuild::numpyIncludeDir() << std::endl; std::cout << "numpyIncludeDir(): " << BABuild::numpyIncludeDir() << std::endl;
std::cout << "numpyVersionString(): " << BABuild::numpyVersionString() << std::endl; std::cout << "numpyVersionString(): " << BABuild::numpyVersionString() << std::endl;
......
...@@ -24,6 +24,6 @@ foreach(example ${examples}) ...@@ -24,6 +24,6 @@ foreach(example ${examples})
get_filename_component(script_name ${script_path} NAME_WE) get_filename_component(script_name ${script_path} NAME_WE)
set(test_name PyExamples/${script_name}) set(test_name PyExamples/${script_name})
add_test(${test_name} ${PYTHON_EXECUTABLE} ${test_script} ${script_path}) add_test(${test_name} ${Python_EXECUTABLE} ${test_script} ${script_path})
set_tests_properties(${test_name} PROPERTIES LABELS "Fullcheck") set_tests_properties(${test_name} PROPERTIES LABELS "Fullcheck")
endforeach() endforeach()
...@@ -18,5 +18,5 @@ set(tests ...@@ -18,5 +18,5 @@ set(tests
) )
foreach(_test ${tests}) foreach(_test ${tests})
add_test(PyFit/${_test} ${PYTHON_EXECUTABLE} ${output_dir}/${_test}) add_test(PyFit/${_test} ${Python_EXECUTABLE} ${output_dir}/${_test})
endforeach() endforeach()
...@@ -21,7 +21,7 @@ function(test_example example tolerance) ...@@ -21,7 +21,7 @@ function(test_example example tolerance)
set(example_mod ${OUTPUT_DIR}/${EXAMPLE_NAME}_mod.py) set(example_mod ${OUTPUT_DIR}/${EXAMPLE_NAME}_mod.py)
configure_file(example_template.py ${example_mod} @ONLY) configure_file(example_template.py ${example_mod} @ONLY)
add_test(${test_name} ${PYTHON_EXECUTABLE} "-B" "${example_mod}") add_test(${test_name} ${Python_EXECUTABLE} "-B" "${example_mod}")
endfunction() endfunction()
test_example("simulation/ex01_BasicParticles/CylindersAndPrisms" 2e-10) test_example("simulation/ex01_BasicParticles/CylindersAndPrisms" 2e-10)
......
...@@ -135,6 +135,17 @@ if(NOT BORNAGAIN_BUILDBOT_SERVER) ...@@ -135,6 +135,17 @@ if(NOT BORNAGAIN_BUILDBOT_SERVER)
configure_file(${TEMPLATE_DIR}/CTestCustom.cmake.in ${CMAKE_BINARY_DIR}/CTestCustom.cmake) configure_file(${TEMPLATE_DIR}/CTestCustom.cmake.in ${CMAKE_BINARY_DIR}/CTestCustom.cmake)
endif() endif()
if (WIN32)
# Necessary to provide correct slashes in BABuild.h
file(TO_CMAKE_PATH ${Python_EXECUTABLE} Python_EXECUTABLE)
file(TO_CMAKE_PATH ${Python_STDLIB} Python_STDLIB)
file(TO_CMAKE_PATH ${Python_LIBRARIES} Python_LIBRARIES)
file(TO_CMAKE_PATH ${Python_STDLIB} Python_STDLIB)
file(TO_CMAKE_PATH ${Python_INCLUDE_DIRS} Python_INCLUDE_DIRS)
file(TO_CMAKE_PATH ${Python_NumPy_INCLUDE_DIRS} Python_NumPy_INCLUDE_DIRS)
file(TO_CMAKE_PATH ${Python_SITELIB} Python_SITELIB)
endif()
configure_file(${TEMPLATE_DIR}/BAVersion.h.in ${BUILD_INC_DIR}/BAVersion.h @ONLY) configure_file(${TEMPLATE_DIR}/BAVersion.h.in ${BUILD_INC_DIR}/BAVersion.h @ONLY)
configure_file(${TEMPLATE_DIR}/BABuild.h.in ${BUILD_INC_DIR}/BABuild.h @ONLY) configure_file(${TEMPLATE_DIR}/BABuild.h.in ${BUILD_INC_DIR}/BABuild.h @ONLY)
configure_file(${TEMPLATE_DIR}/BATesting.h.in ${BUILD_INC_DIR}/BATesting.h @ONLY) configure_file(${TEMPLATE_DIR}/BATesting.h.in ${BUILD_INC_DIR}/BATesting.h @ONLY)
...@@ -162,10 +173,6 @@ configure_file(${TEMPLATE_DIR}/thisbornagain.csh.in ...@@ -162,10 +173,6 @@ configure_file(${TEMPLATE_DIR}/thisbornagain.csh.in
if(BUILD_DEBIAN) if(BUILD_DEBIAN)
set(CMAKE_INSTALL_PREFIX "/usr") set(CMAKE_INSTALL_PREFIX "/usr")
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -c
"from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix=None))"
OUTPUT_VARIABLE PYTHON_SITE_PACKAGES
OUTPUT_STRIP_TRAILING_WHITESPACE )
configure_file(${TEMPLATE_DIR}/postinst.in ${BUILD_VAR_DIR}/postinst @ONLY) configure_file(${TEMPLATE_DIR}/postinst.in ${BUILD_VAR_DIR}/postinst @ONLY)
configure_file(${TEMPLATE_DIR}/prerm.in ${BUILD_VAR_DIR}/prerm @ONLY) configure_file(${TEMPLATE_DIR}/prerm.in ${BUILD_VAR_DIR}/prerm @ONLY)
set(CMAKE_INSTALL_RPATH \$ORIGIN/../;\$ORIGIN/../../lib/${destination_suffix}) set(CMAKE_INSTALL_RPATH \$ORIGIN/../;\$ORIGIN/../../lib/${destination_suffix})
......
# BornAgain Mac packaging # BornAgain Mac packaging
set(SELECTED_PYTHON_VERSION "python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") set(SELECTED_PYTHON_VERSION "python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}")
set(CPACK_PACKAGE_FILE_NAME set(CPACK_PACKAGE_FILE_NAME
"${CMAKE_PROJECT_NAME}-${BORNAGAIN_VERSION}-${SELECTED_PYTHON_VERSION}-${BORNAGAIN_ARCHITECTURE}-10.10+") "${CMAKE_PROJECT_NAME}-${BORNAGAIN_VERSION}-${SELECTED_PYTHON_VERSION}-${BORNAGAIN_ARCHITECTURE}-10.10+")
......
# BornAgain Windows packaging # BornAgain Windows packaging
set(SELECTED_PYTHON_VERSION "python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}") set(SELECTED_PYTHON_VERSION "python${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}")
set(CPACK_PACKAGE_FILE_NAME set(CPACK_PACKAGE_FILE_NAME
"${CMAKE_PROJECT_NAME}-${BORNAGAIN_VERSION}-${SELECTED_PYTHON_VERSION}-${BORNAGAIN_ARCHITECTURE}") "${CMAKE_PROJECT_NAME}-${BORNAGAIN_VERSION}-${SELECTED_PYTHON_VERSION}-${BORNAGAIN_ARCHITECTURE}")
......
...@@ -10,7 +10,7 @@ if(NOT MSVC) ...@@ -10,7 +10,7 @@ if(NOT MSVC)
# file(GLOB_RECURSE SRC2 "GUI/*.h") # file(GLOB_RECURSE SRC2 "GUI/*.h")
add_test(NAME "CodeLineLength" add_test(NAME "CodeLineLength"
COMMAND ${PYTHON_EXECUTABLE} COMMAND ${Python_EXECUTABLE}
${CMAKE_SOURCE_DIR}/dev-tools/analyze/check-line-length.py ${SRC_LEN_LIM} ${CMAKE_SOURCE_DIR}/dev-tools/analyze/check-line-length.py ${SRC_LEN_LIM}
${SRC1} ${SRC2}) ${SRC1} ${SRC2})
endif() endif()
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
############################################################################### ###############################################################################
set(bundle ${CMAKE_INSTALL_PREFIX}/BornAgain.app ) set(bundle ${CMAKE_INSTALL_PREFIX}/BornAgain.app )
execute_process(COMMAND @PYTHON_EXECUTABLE@ @CMAKE_SOURCE_DIR@/cmake/bornagain/scripts/fix_apple_bundle.py ${bundle}) execute_process(COMMAND @Python_EXECUTABLE@ @CMAKE_SOURCE_DIR@/cmake/bornagain/scripts/fix_apple_bundle.py ${bundle})
...@@ -12,7 +12,7 @@ function(GeneratePythonDocs PD_TARGET SWIG_DIR) ...@@ -12,7 +12,7 @@ function(GeneratePythonDocs PD_TARGET SWIG_DIR)
) )
add_custom_command( add_custom_command(
OUTPUT ${PD_TARGET} OUTPUT ${PD_TARGET}
COMMAND ${PYTHON_EXECUTABLE} ${SWIG_DIR}/doxy2swig.py COMMAND ${Python_EXECUTABLE} ${SWIG_DIR}/doxy2swig.py
${TMP_DIR}/xml/index.xml ${PD_TARGET} ${TMP_DIR}/xml/index.xml ${PD_TARGET}
DEPENDS ${TMP_DIR}/xml/index.xml DEPENDS ${TMP_DIR}/xml/index.xml
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment