<commit_before>cmake_minimum_required(VERSION 3.8)
project(cpp-x11-make-screenshot)
set(CMAKE_BUILD_TYPE Release)

include_directories(include)
file(GLOB SOURCES "src/*.cpp")

add_library(x11screenshot STATIC src/screenshot)
target_link_libraries(x11screenshot X11 png jpeg)
set_property(TARGET x11screenshot PROPERTY CXX_STANDARD 11)

add_library(x11cmdopts STATIC src/cmdopts)
set_property(TARGET x11cmdopts PROPERTY CXX_STANDARD 11)

add_executable(makeshot src/main.cpp)
target_link_libraries(makeshot X11 x11screenshot x11cmdopts)
set_property(TARGET makeshot PROPERTY CXX_STANDARD 11)

# install(TARGETS x11screenshot DESTINATION /usr/lib)
# install(FILES screenshot.h DESTINATION include)
install(TARGETS makeshot DESTINATION bin)<commit_msg>Add CPack related options<commit_after># General options
cmake_minimum_required(VERSION 3.8)
project(cpp-x11-make-screenshot)
set(CMAKE_BUILD_TYPE Release)


include_directories(include)
file(GLOB SOURCES "src/*.cpp")

add_library(x11screenshot STATIC src/screenshot)
target_link_libraries(x11screenshot X11 png jpeg)
set_property(TARGET x11screenshot PROPERTY CXX_STANDARD 11)

add_library(x11cmdopts STATIC src/cmdopts)
set_property(TARGET x11cmdopts PROPERTY CXX_STANDARD 11)

add_executable(makeshot src/main.cpp)
target_link_libraries(makeshot X11 x11screenshot x11cmdopts)
set_property(TARGET makeshot PROPERTY CXX_STANDARD 11)

# install(TARGETS x11screenshot DESTINATION /usr/lib)
# install(FILES screenshot.h DESTINATION include)
install(TARGETS makeshot DESTINATION bin)

# CPack
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "makeshot 17.08.15.1")
SET(CPACK_PACKAGE_INSTALL_REGISTRY_KEY "makeshot 17.08.15.1")
SET(CPACK_PACKAGE_NAME "makeshot")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Tool to make screenshots and save them to files")
SET(CPACK_PACKAGE_VENDOR "Butataki")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
SET(CPACK_PACKAGE_VERSION_MAJOR "17")
SET(CPACK_PACKAGE_VERSION_MINOR "08")
SET(CPACK_PACKAGE_VERSION_PATCH "15.1")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
SET(CPACK_PACKAGE_EXECUTABLES "makeshot")
SET(CPACK_SOURCE_GENERATOR "TGZ")
INCLUDE(CPack)
{'fraction_non_alphanumeric': 0.08190394511149228, 'fraction_numerical': 0.034734133790737566, 'mean_word_length': 10.38048780487805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1593466', 'n_tokens_mistral': 932, 'n_tokens_neox': 841, 'n_words': 151}