File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,11 @@ set(PDF2HTMLEX_SRC ${PDF2HTMLEX_SRC}
169
169
src/TmpFiles.cc
170
170
)
171
171
172
- add_executable (pdf2htmlEX ${PDF2HTMLEX_SRC} )
172
+ add_library (libpdf2htmlEX ${PDF2HTMLEX_SRC} )
173
+ target_link_libraries (libpdf2htmlEX ${PDF2HTMLEX_LIBS} )
174
+ set_target_properties (libpdf2htmlEX PROPERTIES OUTPUT_NAME pdf2htmlEX )
175
+
176
+ add_executable (pdf2htmlEX libpdf2htmlEX )
173
177
target_link_libraries (pdf2htmlEX ${PDF2HTMLEX_LIBS} )
174
178
175
179
add_custom_target (pdf2htmlEX_resources ALL DEPENDS
@@ -195,6 +199,16 @@ add_custom_command(OUTPUT
195
199
${CMAKE_SOURCE_DIR} /share/fancy.css
196
200
)
197
201
202
+ install (TARGETS libpdf2htmlEX
203
+ LIBRARY DESTINATION lib
204
+ ARCHIVE DESTINATION lib
205
+ )
206
+ install (
207
+ DIRECTORY pdf2htmlEX/src/
208
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
209
+ FILES_MATCHING PATTERN "*.h"
210
+ )
211
+
198
212
install (TARGETS pdf2htmlEX DESTINATION bin )
199
213
200
214
set (PDF2HTMLEX_RESOURCE
You can’t perform that action at this time.
0 commit comments