Commit 9f252144 authored by Rashad Kanavath's avatar Rashad Kanavath

ENH: add testing for packaging

parent a1cba439
......@@ -152,6 +152,7 @@ include(install_cmake_files)
include(install_mvd_files)
include(install_qtdev_files)
include(install_vstudio_files)
include(add_uninstall_script)
include(installer_files)
include(create_package)
......@@ -214,8 +215,23 @@ install_vstudio_files()
installer_files()
# creation of package is different from windows and unix like
if(WIN32)
set(PACKAGE_OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/${PKG_STAGE_DIR}.zip")
else()
set(PACKAGE_OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/${PKG_STAGE_DIR}.run")
endif()
create_package()
if(BUILD_TESTING)
enable_testing()
include(testing.cmake)
endif()
#TODO: dummy targets. to be removed after merge
add_custom_target(
PACKAGE-OTB
......
macro(create_package)
# creation of package is different from windows and unix like
if(WIN32)
set(PACKAGE_OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/${PKG_STAGE_DIR}.zip")
else()
set(PACKAGE_OUTPUT_FILE "${CMAKE_CURRENT_BINARY_DIR}/${PKG_STAGE_DIR}.run")
endif()
install(CODE "
message(STATUS \"Creating ${PACKAGE_OUTPUT_FILE}\")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment