<commit_before>cmake_minimum_required(VERSION 2.8)
project(QGLITTERTOOL)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

find_package(Qt4 REQUIRED COMPONENTS QtCore QtGui QtNetwork)

include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})

set(SOURCES
	main.cpp)

add_executable(qglitter-tool ${SOURCES})
target_link_libraries(qglitter-tool qglitter ${QT_LIBRARIES} ${PLATFORM_LIBS})<commit_msg>qglitter-tool is installed and should have its RPath set correctly<commit_after>cmake_minimum_required(VERSION 2.8)
project(QGLITTERTOOL)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

find_package(Qt4 REQUIRED COMPONENTS QtCore QtGui QtNetwork)

include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})

set(SOURCES
	main.cpp)

set(SKIP_BUILD_RPATH FALSE)
set(BUILD_WITH_INSTALL_RPATH FALSE)
set(INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
set(INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(INSTALL_RPATH_USE_LINK_PATH TRUE)

list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
if("${isSystemDir}" STREQUAL "-1")
   set(INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
endif()

add_executable(qglitter-tool ${SOURCES})
target_link_libraries(qglitter-tool qglitter ${QT_LIBRARIES} ${PLATFORM_LIBS})
set_target_properties(qglitter-tool PROPERTIES
	SKIP_BUILD_RPATH ${SKIP_BUILD_RPATH}
	BUILD_WITH_INSTALL_RPATH ${BUILD_WITH_INSTALL_RPATH}
	INSTALL_NAME_DIR ${INSTALL_NAME_DIR}
	INSTALL_RPATH ${INSTALL_RPATH}
	INSTALL_RPATH_USE_LINK_PATH ${INSTALL_RPATH_USE_LINK_PATH})

install(TARGETS qglitter-tool RUNTIME DESTINATION bin)
{'fraction_non_alphanumeric': 0.10015487867836861, 'fraction_numerical': 0.0036138358286009293, 'mean_word_length': 12.458333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3072069', 'n_tokens_mistral': 798, 'n_tokens_neox': 730, 'n_words': 97}