<commit_before>add_definitions(-std=c++0x)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(CMAKE_AUTOMOC ON)

find_package(Qt5Widgets REQUIRED)

find_package(SlicerExecutionModel REQUIRED)
include(${SlicerExecutionModel_USE_FILE})
include(${GenerateCLP_USE_FILE})

find_package(QtToCppXML REQUIRED)
include(${QtToCppXML_USE_FILE})

set(srcheaders
scriptwriter.h
csvparser.h
atlasmodel.h
csvbrowsemodel.h
fibertractmodel.h
csvbrowser.h
T1T2FiberAnalyzer.h
errorreporter.h
)

set(srcfiles
tfatool.cpp
errorreporter.cpp
T1T2FiberAnalyzer.cpp
ScalarFiberAnalyzer.cpp
csvbrowser.cpp
csvbrowsemodel.cpp
fibertractmodel.cpp
atlasmodel.cpp
scriptwriter.cpp
csvparser.cpp
)

set(srcUI
csvbrowser.ui
mainwindow.ui
)

qt5_wrap_cpp(QT5_HEADERS_MOC ${srcheaders})
qt5_wrap_ui(UI_FILES ${srcUI})

QtToCppXML( SOURCES srcfiles NAME T1T2FiberAnalyzer UIXML_FILE mainwindow.ui PREFIXES para_ conf_ )

list( APPEND
srcfiles
${QT5_HEADERS_MOC}
${UI_FILES}
)


SEMMacroBuildCLI(
  NAME ScalarFiberAnalyzer
  EXECUTABLE_ONLY
  ADDITIONAL_SRCS ${srcfiles}
  TARGET_LIBRARIES ${Qt5Widgets_LIBRARIES}
  INCLUDE_DIRECTORIES ${Qt5Widgets_INCLUDE_DIRS}
  INSTALL_RUNTIME_DESTINATION ${INSTALL_RUNTIME_DESTINATION}
  INSTALL_LIBRARY_DESTINATION ${INSTALL_LIBRARY_DESTINATION}
  INSTALL_ARCHIVE_DESTINATION ${INSTALL_ARCHIVE_DESTINATION} 
)

#add_executable(T1T2FiberAnalyzer ${srcfiles})
#target_link_libraries(T1T2FiberAnalyzer Qt5::Widgets)
<commit_msg>STYLE: Add the executable of ScalarFiberAnalyzer to the bin directory<commit_after>add_definitions(-std=c++0x)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(CMAKE_AUTOMOC ON)

find_package(Qt5Widgets REQUIRED)

find_package(SlicerExecutionModel REQUIRED)
include(${SlicerExecutionModel_USE_FILE})
include(${GenerateCLP_USE_FILE})

find_package(QtToCppXML REQUIRED)
include(${QtToCppXML_USE_FILE})

set(srcheaders
scriptwriter.h
csvparser.h
atlasmodel.h
csvbrowsemodel.h
fibertractmodel.h
csvbrowser.h
T1T2FiberAnalyzer.h
errorreporter.h
)

set(srcfiles
tfatool.cpp
errorreporter.cpp
T1T2FiberAnalyzer.cpp
ScalarFiberAnalyzer.cpp
csvbrowser.cpp
csvbrowsemodel.cpp
fibertractmodel.cpp
atlasmodel.cpp
scriptwriter.cpp
csvparser.cpp
)

set(srcUI
csvbrowser.ui
mainwindow.ui
)

qt5_wrap_cpp(QT5_HEADERS_MOC ${srcheaders})
qt5_wrap_ui(UI_FILES ${srcUI})

QtToCppXML( SOURCES srcfiles NAME T1T2FiberAnalyzer UIXML_FILE mainwindow.ui PREFIXES para_ conf_ )

list( APPEND
srcfiles
${QT5_HEADERS_MOC}
${UI_FILES}
)


SEMMacroBuildCLI(
  NAME ScalarFiberAnalyzer
  EXECUTABLE_ONLY
  ADDITIONAL_SRCS ${srcfiles}
  TARGET_LIBRARIES ${Qt5Widgets_LIBRARIES}
  INCLUDE_DIRECTORIES ${Qt5Widgets_INCLUDE_DIRS}
  INSTALL_RUNTIME_DESTINATION ${INSTALL_RUNTIME_DESTINATION}
  INSTALL_LIBRARY_DESTINATION ${INSTALL_LIBRARY_DESTINATION}
  INSTALL_ARCHIVE_DESTINATION ${INSTALL_ARCHIVE_DESTINATION} 
  ARCHIVE_OUTPUT_DIRECTORY ${ARCHIVE_DESTINATION}
  LIBRARY_OUTPUT_DIRECTORY ${LIBRARY_DESTINATION}
  RUNTIME_OUTPUT_DIRECTORY ${RUNTIME_DESTINATION}
)

#add_executable(T1T2FiberAnalyzer ${srcfiles})
#target_link_libraries(T1T2FiberAnalyzer Qt5::Widgets)

{'fraction_non_alphanumeric': 0.07758053911900066, 'fraction_numerical': 0.012491781722550954, 'mean_word_length': 9.565972222222221, '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': '970218', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1211, 'n_words': 167}