Commit 0b7a346e authored by Emmanuel Christophe's avatar Emmanuel Christophe

ENH: much better location for the config file generation

parent 565753e2
......@@ -1125,3 +1125,16 @@ ENDIF(WIN32 AND NOT UNIX AND NOT CYGWIN)
INCLUDE(CPack)
ENDIF(OTB_USE_CPACK)
FILE(GLOB otbconfigfileCreation_SRCS "${OTB_SOURCE_DIR}/CMake/generate-config-properties.cpp")
SET(otbconfigfile_DEFAULT "${OTB_BINARY_DIR}/otb_config.inp")
ADD_EXECUTABLE(generate-config-properties ${otbconfigfileCreation_SRCS})
ADD_CUSTOM_COMMAND(
TARGET generate-config-properties
POST_BUILD
COMMAND generate-config-properties
ARGS "${otbconfigfile_DEFAULT}" "${OTB_LANG}"
COMMENT "Generating otb_config.inp" )
......@@ -26,18 +26,6 @@ IF(OTB_LIBRARY_PROPERTIES)
SET_TARGET_PROPERTIES(OTBCommon PROPERTIES ${OTB_LIBRARY_PROPERTIES})
ENDIF(OTB_LIBRARY_PROPERTIES)
FILE(GLOB otbconfigfileCreation_SRCS "${OTB_SOURCE_DIR}/CMake/generate-config-properties.cpp")
SET(otbconfigfile_DEFAULT "${OTB_BINARY_DIR}/otb_config.inp")
ADD_EXECUTABLE(generate-config-properties ${otbconfigfileCreation_SRCS})
ADD_CUSTOM_COMMAND(
TARGET OTBCommon
POST_BUILD
COMMAND generate-config-properties
ARGS "${otbconfigfile_DEFAULT}" "${OTB_LANG}"
COMMENT "Generating otb_config.inp" )
IF(NOT OTB_INSTALL_NO_LIBRARIES)
INSTALL(TARGETS OTBCommon
RUNTIME DESTINATION ${OTB_INSTALL_BIN_DIR_CM24} COMPONENT RuntimeLibraries
......
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