<commit_before>

find_package(Qt4 REQUIRED QtCore QtGui)
include(${QT_USE_FILE})

find_package(PythonLibs REQUIRED)
find_package(PythonQt REQUIRED)


include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${PYTHON_INCLUDE_DIRS})
include_directories(${PYTHONQT_INCLUDE_DIR})


set(srcs
  ctkConsole.cpp
  ctkPythonConsole.cpp
  ctkAbstractPythonManager.cpp
)

qt4_wrap_cpp(moc_srcs
  ctkConsole.h
  ctkConsole_p.h
  ctkPythonConsole.h
  ctkAbstractPythonManager.h
  )

add_library(ctkPythonConsole ${srcs} ${moc_srcs})
target_link_libraries(ctkPythonConsole ${QT_LIBRARIES} ${PYTHON_LIBRARIES} ${PYTHONQT_LIBRARIES})
set_target_properties(ctkPythonConsole PROPERTIES SOVERSION 1.0 VERSION 1.0)
set_target_properties(ctkPythonConsole  PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")

add_executable(console main.cpp)
target_link_libraries(console ctkPythonConsole)

install(FILES
  ctkAbstractPythonManager.h
  ctkConsole.h
  ctkPythonConsole.h
  ctkPythonConsoleExport.h
  DESTINATION include/ctkPythonConsole)

install(TARGETS
  ctkPythonConsole
  DESTINATION lib)
<commit_msg>fix library install rule to support dll runtime location on windows<commit_after>

find_package(Qt4 REQUIRED QtCore QtGui)
include(${QT_USE_FILE})

find_package(PythonLibs REQUIRED)
find_package(PythonQt REQUIRED)


include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${PYTHON_INCLUDE_DIRS})
include_directories(${PYTHONQT_INCLUDE_DIR})


set(srcs
  ctkConsole.cpp
  ctkPythonConsole.cpp
  ctkAbstractPythonManager.cpp
)

qt4_wrap_cpp(moc_srcs
  ctkConsole.h
  ctkConsole_p.h
  ctkPythonConsole.h
  ctkAbstractPythonManager.h
  )

add_library(ctkPythonConsole ${srcs} ${moc_srcs})
target_link_libraries(ctkPythonConsole ${QT_LIBRARIES} ${PYTHON_LIBRARIES} ${PYTHONQT_LIBRARIES})
set_target_properties(ctkPythonConsole PROPERTIES SOVERSION 1.0 VERSION 1.0)
set_target_properties(ctkPythonConsole  PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")

add_executable(console main.cpp)
target_link_libraries(console ctkPythonConsole)

install(FILES
  ctkAbstractPythonManager.h
  ctkConsole.h
  ctkPythonConsole.h
  ctkPythonConsoleExport.h
  DESTINATION include/ctkPythonConsole)

install(TARGETS ctkPythonConsole
        RUNTIME DESTINATION bin
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib)

{'fraction_non_alphanumeric': 0.0728363324764353, 'fraction_numerical': 0.005141388174807198, 'mean_word_length': 7.7781954887218046, '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': '2532726', 'n_tokens_mistral': 918, 'n_tokens_neox': 843, 'n_words': 125}