OLD | NEW |
1 include_regular_expression("^.*$") | 1 include_regular_expression("^.*$") |
2 | 2 |
3 # | 3 # |
4 install( FILES ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h | 4 install( FILES ${CMAKE_CURRENT_BINARY_DIR}/opj_config.h |
5 DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers) | 5 DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers) |
6 | 6 |
7 include_directories( | 7 include_directories( |
8 ${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h and opj_config_private.h | 8 ${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h and opj_config_private.h |
9 ) | 9 ) |
10 # Defines the source code for the library | 10 # Defines the source code for the library |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 RUNTIME DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications | 61 RUNTIME DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications |
62 LIBRARY DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries | 62 LIBRARY DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries |
63 ARCHIVE DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries | 63 ARCHIVE DESTINATION ${OPENJPEG_INSTALL_LIB_DIR} COMPONENT Libraries |
64 ) | 64 ) |
65 | 65 |
66 # Install includes files | 66 # Install includes files |
67 install(FILES openjpeg.h opj_stdint.h | 67 install(FILES openjpeg.h opj_stdint.h |
68 DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers | 68 DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR} COMPONENT Headers |
69 ) | 69 ) |
70 | 70 |
| 71 if(BUILD_DOC) |
71 # install man page of the library | 72 # install man page of the library |
72 install( | 73 install( |
73 FILES ${OPENJPEG_SOURCE_DIR}/doc/man/man3/libopenjp2.3 | 74 FILES ${OPENJPEG_SOURCE_DIR}/doc/man/man3/libopenjp2.3 |
74 DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man3) | 75 DESTINATION ${OPENJPEG_INSTALL_MAN_DIR}/man3) |
| 76 endif() |
75 | 77 |
76 # internal utilities to generate t1_luts.h (part of the jp2 lib) | 78 # internal utilities to generate t1_luts.h (part of the jp2 lib) |
77 # no need to install: | 79 # no need to install: |
78 add_executable(t1_generate_luts t1_generate_luts.c) | 80 add_executable(t1_generate_luts t1_generate_luts.c) |
79 if(UNIX) | 81 if(UNIX) |
80 target_link_libraries(t1_generate_luts m) | 82 target_link_libraries(t1_generate_luts m) |
81 endif() | 83 endif() |
82 | 84 |
83 # Experimental option; let's how cppcheck performs | 85 # Experimental option; let's how cppcheck performs |
84 # Implementation details: | 86 # Implementation details: |
85 # I could not figure out how to easily upload a file to CDash. Instead simply | 87 # I could not figure out how to easily upload a file to CDash. Instead simply |
86 # pretend cppcheck is part of the Build step. Technically cppcheck can even | 88 # pretend cppcheck is part of the Build step. Technically cppcheck can even |
87 # output gcc formatted error/warning report | 89 # output gcc formatted error/warning report |
88 # Another implementation detail: I could not redirect error to the error | 90 # Another implementation detail: I could not redirect error to the error |
89 # catching mechanism something is busted in cmake 2.8.5, I had to use the | 91 # catching mechanism something is busted in cmake 2.8.5, I had to use the |
90 # warning regex to catch them. | 92 # warning regex to catch them. |
91 if(OPENJPEG_CPPCHECK) | 93 if(OPENJPEG_CPPCHECK) |
92 find_package(CPPCHECK REQUIRED) | 94 find_package(CPPCHECK REQUIRED) |
93 foreach(f ${OPENJPEG_SRCS}) | 95 foreach(f ${OPENJPEG_SRCS}) |
94 # cppcheck complains about too many configuration, pretend to be WIN32: | 96 # cppcheck complains about too many configuration, pretend to be WIN32: |
95 add_custom_command(TARGET ${OPENJPEG_LIBRARY_NAME} | 97 add_custom_command(TARGET ${OPENJPEG_LIBRARY_NAME} |
96 COMMAND ${CPPCHECK_EXECUTABLE} -DWIN32 ${f}) | 98 COMMAND ${CPPCHECK_EXECUTABLE} -DWIN32 ${f}) |
97 endforeach() | 99 endforeach() |
98 endif() | 100 endif() |
OLD | NEW |