<commit_before># cmake build file.

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(ircclient)

# defs can be handled from here

# common handled here too?

IF(UNIX)
    IF(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
        ADD_DEFINITIONS(-DTARGET_LINUX_32)
    ELSEIF(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
        ADD_DEFINITIONS(-DTARGET_LINUX_64)
    ENDIF(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
ELSEIF(WIN32)
        MESSAGE(FATAL_ERROR "WIN32 not configured")
ENDIF(UNIX)

# Are we building standalone or as a subdir of another project?
IF(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
    MESSAGE(FATAL_ERROR "Building standalone is not properly configured yet")

    INCLUDE_DIRECTORIES(anpcode.git/source/defs)
    INCLUDE_DIRECTORIES(anpcode.git/source/common)
    INCLUDE_DIRECTORIES(anpcode.git/source/pfindep)

    ADD_SUBDIRECTORY(anpcode.git/source)
ELSE()
    # Inherit includes from parent instead, and ont care about anpcode
ENDIF()

SET(ircclient_sources network/messagesender.cpp
                      network/network.cpp
                      network/networkfactory.cpp
                      network/tcpconnection.cpp
                      network/tokenizer.cpp
                      cache/channelcache.cpp
                      cache/networkcache.cpp
                      cache/userinfo.cpp
                      cache/utilities.cpp
                      pluginmanager/plugin.cpp
                      pluginmanager/pluginmanager.cpp)

ADD_LIBRARY(fircc SHARED ${ircclient_sources})
#SET_TARGET_PROPERTIES(fircc PROPERTIES COMPILE_FLAGS "-fPIC")
TARGET_LINK_LIBRARIES(fircc anpcode)
##### ADD_LIBRARY(anpcode ${COMMON_SRCS})

# pfindep handled by sub make list
#ADD_SUBDIRECTORY(pfindep)
<commit_msg>Add install target.<commit_after># cmake build file.

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(ircclient)

# defs can be handled from here

# common handled here too?

IF(UNIX)
    IF(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
        ADD_DEFINITIONS(-DTARGET_LINUX_32)
    ELSEIF(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
        ADD_DEFINITIONS(-DTARGET_LINUX_64)
    ENDIF(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
ELSEIF(WIN32)
        MESSAGE(FATAL_ERROR "WIN32 not configured")
ENDIF(UNIX)

# Are we building standalone or as a subdir of another project?
IF(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
    MESSAGE(FATAL_ERROR "Building standalone is not properly configured yet")

    INCLUDE_DIRECTORIES(anpcode.git/source/defs)
    INCLUDE_DIRECTORIES(anpcode.git/source/common)
    INCLUDE_DIRECTORIES(anpcode.git/source/pfindep)

    ADD_SUBDIRECTORY(anpcode.git/source)
ELSE()
    # Inherit includes from parent instead, and ont care about anpcode
ENDIF()

SET(ircclient_sources network/messagesender.cpp
                      network/network.cpp
                      network/networkfactory.cpp
                      network/tcpconnection.cpp
                      network/tokenizer.cpp
                      cache/channelcache.cpp
                      cache/networkcache.cpp
                      cache/userinfo.cpp
                      cache/utilities.cpp
                      pluginmanager/plugin.cpp
                      pluginmanager/pluginmanager.cpp)

ADD_LIBRARY(fircc SHARED ${ircclient_sources})
TARGET_LINK_LIBRARIES(fircc anpcode)
SET_TARGET_PROPERTIES(fircc
                      PROPERTIES
                      COMPILE_FLAGS "-fPIC"
                      VERSION 1.0.0
                      SOVERSION 1)
INSTALL(TARGETS fircc
        DESTINATION lib
        PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)

{'fraction_non_alphanumeric': 0.07325383304940375, 'fraction_numerical': 0.008517887563884156, 'mean_word_length': 2.569402228976697, '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': '2522752', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1104, 'n_words': 212}