diff --git a/CMakeLists.txt b/CMakeLists.txt index ea71f0d9..0c956efd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -202,6 +202,14 @@ if(BUILD_CODEC OR BUILD_MJ2) endif () add_subdirectory(wrapping) +#----------------------------------------------------------------------------- +# opj_config.h generation (2/2) +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/openjp2/opj_config.h.cmake.in + ${CMAKE_CURRENT_BINARY_DIR}/src/lib/openjp2/opj_config.h + @ONLY + ) + #----------------------------------------------------------------------------- # Build DOCUMENTATION (not in ALL target and only if Doxygen is found) option(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF) diff --git a/src/lib/openjp2/CMakeLists.txt b/src/lib/openjp2/CMakeLists.txt index 8739ccaa..79ab16de 100644 --- a/src/lib/openjp2/CMakeLists.txt +++ b/src/lib/openjp2/CMakeLists.txt @@ -1,12 +1,5 @@ include_regular_expression("^.*$") -#----------------------------------------------------------------------------- -# opj_config.h generation (2/2) -configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/opj_config.h.cmake.in - ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h - @ONLY - ) # install( FILES ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers)