Merge pull request #31 from tpetazzoni/installation-rule

CMakeLists: add rules for installation
This commit is contained in:
Benjamin Dobell 2015-10-05 00:55:23 +11:00
commit fa34227d26

View File

@ -68,6 +68,10 @@ file(GLOB_RECURSE ZXING_FILES
) )
add_executable(zxing ${ZXING_FILES}) add_executable(zxing ${ZXING_FILES})
target_link_libraries(zxing libzxing) target_link_libraries(zxing libzxing)
install(TARGETS zxing libzxing
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
install(DIRECTORY core/src/zxing/ DESTINATION include/zxing FILES_MATCHING PATTERN "*.h")
# Add testrunner executable. # Add testrunner executable.
find_package(CPPUNIT) find_package(CPPUNIT)