File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,25 @@ endif()
13
13
14
14
set (BUILD_SHARED_LIBS OFF CACHE BOOL "Build deps as a static library." FORCE)
15
15
16
- add_subdirectory ("third_party/googletest" )
17
- add_subdirectory ("third_party/tinyxml2" )
18
- add_subdirectory ("third_party/sqlite3" )
19
- add_subdirectory ("third_party/gumbo" )
16
+ add_subdirectory ("third_party/googletest" EXCLUDE_FROM_ALL )
17
+ add_subdirectory ("third_party/tinyxml2" EXCLUDE_FROM_ALL )
18
+ add_subdirectory ("third_party/sqlite3" EXCLUDE_FROM_ALL )
19
+ add_subdirectory ("third_party/gumbo" EXCLUDE_FROM_ALL )
20
20
21
21
add_subdirectory ("source" )
22
22
add_subdirectory ("tests" )
23
+
24
+ # Debian Packages on Linux.
25
+ if (UNIX AND NOT APPLE )
26
+ set (CPACK_PACKAGE_NAME "doxygen2docset" )
27
+ set (CPACK_PACKAGE_VENDOR "Chinmay Garde" )
28
+ set (CPACK_PACKAGE_CONTACT
"[email protected] " )
29
+ set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "Dash or Zeal Docsets from Doxygen Documentation" )
30
+ set (CPACK_PACKAGE_VERSION_MAJOR 1)
31
+ set (CPACK_PACKAGE_VERSION_MINOR 0)
32
+ set (CPACK_PACKAGE_VERSION_PATCH 0)
33
+ set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR} /LICENSE.md" )
34
+ set (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR} /README.md" )
35
+ set (CPACK_GENERATOR "DEB" )
36
+ include (CPack)
37
+ endif (UNIX AND NOT APPLE )
Original file line number Diff line number Diff line change @@ -35,10 +35,13 @@ target_include_directories(doxygen2docset_lib
35
35
36
36
add_executable (doxygen2docset "main.cc" )
37
37
38
-
39
38
target_link_libraries (doxygen2docset
40
39
PRIVATE
41
40
doxygen2docset_lib
42
41
)
43
42
44
43
set_target_properties (doxygen2docset PROPERTIES LINK_FLAGS_RELEASE -s)
44
+
45
+ install (TARGETS doxygen2docset
46
+ RUNTIME
47
+ DESTINATION bin)
You can’t perform that action at this time.
0 commit comments