Skip to content

Commit 3a2fb85

Browse files
committed
cpack now creates DEB packages
1 parent c6ae259 commit 3a2fb85

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,16 @@ target_include_directories(
6262
)
6363

6464
add_subdirectory(test)
65+
66+
install(TARGETS jsonlogic
67+
COMPONENT jsonlogic
68+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
69+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
70+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
71+
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
72+
)
73+
install(FILES src/json_logic.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
74+
75+
SET(CPACK_GENERATOR "DEB")
76+
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "nobody")
77+
INCLUDE(CPack)

0 commit comments

Comments
 (0)