-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rashad Kanavath
committed
Feb 14, 2020
1 parent
d8a71d3
commit 0870bf3
Showing
7 changed files
with
103 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,27 @@ | ||
set(${otb-module}_DEPENDS) | ||
if(NOT PROJECT_NAME STREQUAL "LIS") | ||
set(${otb-module}_DEPENDS OTBSWIGWrapper-all) | ||
endif() | ||
|
||
add_custom_target(${otb-module}-py | ||
COMMAND ${CMAKE_COMMAND} -E echo "Building python scrips ${CMAKE_CURRENT_BINARY_DIR}/python/" | ||
COMMAND ${PYTHON_EXECUTABLE} setup.py build --build-base ${CMAKE_CURRENT_BINARY_DIR}/python | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python | ||
DEPENDS OTBSWIGWrapper-all | ||
DEPENDS ${${otb-module}_DEPENDS} | ||
) | ||
|
||
otb_module_target_label(${otb-module}-py) | ||
|
||
install(CODE " | ||
message(STATUS \"Installing s2snow python package\") | ||
execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py install | ||
--single-version-externally-managed \ | ||
--record ${CMAKE_CURRENT_BINARY_DIR}/python/setup_install.log | ||
--home=${CMAKE_INSTALL_PREFIX} --install-purelib=${CMAKE_INSTALL_PREFIX}/${OTB_INSTALL_PYTHON_DIR} --install-scripts=bin | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/python | ||
RESULT_VARIABLE _install_rv | ||
OUTPUT_VARIABLE _install_ov | ||
ERROR_VARIABLE _install_ev) | ||
if(NOT \${_install_rv} EQUAL 0) | ||
message(FATAL_ERROR \"Failed to install s2snow(LIS) because \${_install_ov} \\n \${_install_ev} \") | ||
endif() | ||
") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.