<commit_before>find_package(GLUT REQUIRED)
find_package(OpenGL REQUIRED)

set (SimpleViewer_SOURCES
  main.cpp
  utils.h
  SimpleViewer.h
  SimpleViewer.cpp
  )

add_executable(SimpleViewer ${SimpleViewer_SOURCES})

include_directories(SimpleViewer ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIR})

target_link_libraries(SimpleViewer SenseKit SenseKitUL ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})

if (WIN32)
  SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
  SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
  SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO")

#       add_custom_command(TARGET SimpleViewer POST_BUILD
#               COMMAND ${CMAKE_COMMAND} -E copy_if_different
#                       "$<TARGET_FILE_DIR:SenseKit>/SenseKit.dll"
#                       $<TARGET_FILE_DIR:SimpleViewer>)
#
#       add_custom_command(TARGET SimpleViewer POST_BUILD
#               COMMAND ${CMAKE_COMMAND} -E copy_if_different
#                       "$<TARGET_FILE_DIR:SenseKitSL>/SenseKitSL.dll"
#                       $<TARGET_FILE_DIR:SimpleViewer>)

        add_custom_target(copyoutput ALL
                #SimpleViewer
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKit>/SenseKit.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKitSL>/SenseKitSL.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:OpenNIPlugin>/OpenNIPlugin.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:DummyPlugin>/DummyPlugin.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                #DepthReader
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKit>/SenseKit.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKitSL>/SenseKitSL.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:OpenNIPlugin>/OpenNIPlugin.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:DummyPlugin>/DummyPlugin.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                                )
endif()<commit_msg>Fix bad path in windows dll copy commands in cmake script<commit_after>find_package(GLUT REQUIRED)
find_package(OpenGL REQUIRED)

set (SimpleViewer_SOURCES
  main.cpp
  utils.h
  SimpleViewer.h
  SimpleViewer.cpp
  )

add_executable(SimpleViewer ${SimpleViewer_SOURCES})

include_directories(SimpleViewer ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIR})

target_link_libraries(SimpleViewer SenseKit SenseKitUL ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})

if (WIN32)
  SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
  SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /SAFESEH:NO")
  SET (CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /SAFESEH:NO")

#       add_custom_command(TARGET SimpleViewer POST_BUILD
#               COMMAND ${CMAKE_COMMAND} -E copy_if_different
#                       "$<TARGET_FILE_DIR:SenseKit>/SenseKit.dll"
#                       $<TARGET_FILE_DIR:SimpleViewer>)
#
#       add_custom_command(TARGET SimpleViewer POST_BUILD
#               COMMAND ${CMAKE_COMMAND} -E copy_if_different
#                       "$<TARGET_FILE_DIR:SenseKitSL>/SenseKitSL.dll"
#                       $<TARGET_FILE_DIR:SimpleViewer>)

        add_custom_target(copyoutput ALL
                #SimpleViewer
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKit>/SenseKit.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKitSL>/SenseKitUL.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:OpenNIPlugin>/OpenNIPlugin.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:DummyPlugin>/DummyPlugin.dll"
                                $<TARGET_FILE_DIR:SimpleViewer>
                #DepthReader
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKit>/SenseKit.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:SenseKitSL>/SenseKitUL.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:OpenNIPlugin>/OpenNIPlugin.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                        COMMAND ${CMAKE_COMMAND} -E copy_if_different
                                "$<TARGET_FILE_DIR:DummyPlugin>/DummyPlugin.dll"
                                $<TARGET_FILE_DIR:DepthReader>
                                )
endif()
{'fraction_non_alphanumeric': 0.08066666666666666, 'fraction_numerical': 0.0006666666666666666, 'mean_word_length': 1.7667127708621484, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '2253953', 'n_tokens_mistral': 1905, 'n_tokens_neox': 1770, 'n_words': 219}