"${OPENJPEG_BINARY_DIR}/opj_config.h"
@ONLY
)
-
+#
+INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h
+ DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers)
#-----------------------------------------------------------------------------
# Build DOCUMENTATION (not in ALL target and only if Doxygen is found)
OPTION(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF)
endif
includesdir = $(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)
-includes_HEADERS = openjpeg.h opj_stdint.h
+includes_HEADERS = openjpeg.h opj_stdint.h $(top_builddir)/opj_config.h
lib_LTLIBRARIES = libopenjpeg.la
CMakeLists.txt
install-data-hook:
- cd $(DESTDIR)$(includedir) && \
- rm -f openjpeg.h && \
- $(LN_S) openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h \
- openjpeg.h
+ cd $(DESTDIR)$(includedir) && rm -f openjpeg.h
@rm -rf $(top_builddir)/report.txt
@echo -e " (LA)\t$(libdir)/libopenjpeg.la" >> $(top_builddir)/report.txt
if BUILD_SHARED
@echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
endif
@echo -e " (H)\t$(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h" >> $(top_builddir)/report.txt
- @echo -e " (LN)\t$(includedir)/openjpeg.h" >> $(top_builddir)/report.txt
uninstall-hook:
rm -f $(DESTDIR)$(includedir)/openjpeg.h