<commit_before>cmake_minimum_required(VERSION 2.6.0)

# pull in the pods macros. See cmake/pods.cmake for documentation
set(POD_NAME action_authoring)
include(cmake/pods.cmake)

# automatically build LCM types.  This also defines a number of CMake
# variables, see cmake/lcmtypes.cmake for details
include(cmake/lcmtypes.cmake)
lcmtypes_build()


set(REQUIRED_PACKAGES affordance opengl_object_gfe state_gfe qt4_widget
  collision_detector opengl_scene opengl_object opengl_camera QtCore QtGui QtOpenGL glu gl urdf
  libxml-2.0)

#QT includes
find_package(Qt4 COMPONENTS QtCore QtGui QtOpenGL REQUIRED)
include(${QT_USE_FILE})

#boost includes
find_package(Boost COMPONENTS thread date_time program_options filesystem system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})


#QT wrap
qt_wrap_cpp(action_authoring MOC_SRCS src/gui/mainwindow.h src/gui/togglepanel.h src/gui/customslider.h src/gui/Qt4Constraint.h)

#========libary action_authoring
add_library(action_authoring SHARED 
  src/AtomicConstraint.cpp
  src/AffordanceRelation.cpp
  src/Constraint.cpp
  src/DatabaseManager.cpp)

pods_install_headers(src/AtomicConstraint.h 
  src/AffordanceRelation.h
  src/Constraint.h
  src/DatabaseManager.h
  DESTINATION action_authoring)

pods_install_libraries(action_authoring)
pods_use_pkg_config_packages(action_authoring ${REQUIRED_PACKAGES} affordance)
target_link_libraries(action_authoring ${Boost_LIBRARIES})
pods_install_pkg_config_file(action_authoring 
  LIBS -laction_authoring
  REQUIRES ${REQUIRED_PACKAGES})

#======action authoring executable
add_executable(action_authoring_gui src/gui/main.cpp src/gui/mainwindow.cpp 
  src/gui/togglepanel.cpp
  src/gui/Qt4Constraint.cpp
  src/opengl/ColorRobot.cpp
  src/opengl/SelectableOpenGLWidget.cpp
  ${MOC_SRCS})

target_link_libraries(action_authoring_gui ${Boost_LIBRARIES} action_authoring)

pods_use_pkg_config_packages(action_authoring_gui ${REQUIRED_PACKAGES})


#=====demo populate executable
add_executable(demo_populate_aff_server src/test/demo_populate_affordance_server.cpp)
target_link_libraries(demo_populate_aff_server ${Boost_LIBRARIES} lcm affordance)

#=====action database 
add_executable(database_test
  src/test/test_database_manager.cpp
  src/DatabaseManager.cpp)
target_link_libraries(database_test ${Boost_LIBRARIES} lcm affordance action_authoring)
pods_use_pkg_config_packages(database_test ${REQUIRED_PACKAGES})<commit_msg>renamed binary<commit_after>cmake_minimum_required(VERSION 2.6.0)

# pull in the pods macros. See cmake/pods.cmake for documentation
set(POD_NAME action_authoring)
include(cmake/pods.cmake)

# automatically build LCM types.  This also defines a number of CMake
# variables, see cmake/lcmtypes.cmake for details
include(cmake/lcmtypes.cmake)
lcmtypes_build()


set(REQUIRED_PACKAGES affordance opengl_object_gfe state_gfe qt4_widget
  collision_detector opengl_scene opengl_object opengl_camera QtCore QtGui QtOpenGL glu gl urdf
  libxml-2.0)

#QT includes
find_package(Qt4 COMPONENTS QtCore QtGui QtOpenGL REQUIRED)
include(${QT_USE_FILE})

#boost includes
find_package(Boost COMPONENTS thread date_time program_options filesystem system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})


#QT wrap
qt_wrap_cpp(action_authoring MOC_SRCS src/gui/mainwindow.h src/gui/togglepanel.h src/gui/customslider.h src/gui/Qt4Constraint.h)

#========libary action_authoring
add_library(action_authoring SHARED 
  src/AtomicConstraint.cpp
  src/AffordanceRelation.cpp
  src/Constraint.cpp
  src/DatabaseManager.cpp)

pods_install_headers(src/AtomicConstraint.h 
  src/AffordanceRelation.h
  src/Constraint.h
  src/DatabaseManager.h
  DESTINATION action_authoring)

pods_install_libraries(action_authoring)
pods_use_pkg_config_packages(action_authoring ${REQUIRED_PACKAGES} affordance)
target_link_libraries(action_authoring ${Boost_LIBRARIES})
pods_install_pkg_config_file(action_authoring 
  LIBS -laction_authoring
  REQUIRES ${REQUIRED_PACKAGES})

#======action authoring executable
add_executable(action_authoring_gui src/gui/main.cpp src/gui/mainwindow.cpp 
  src/gui/togglepanel.cpp
  src/gui/Qt4Constraint.cpp
  src/opengl/ColorRobot.cpp
  src/opengl/SelectableOpenGLWidget.cpp
  ${MOC_SRCS})

target_link_libraries(action_authoring_gui ${Boost_LIBRARIES} action_authoring)

pods_use_pkg_config_packages(action_authoring_gui ${REQUIRED_PACKAGES})


#=====demo populate executable
add_executable(demo_populate_aff_server src/test/demo_populate_affordance_server.cpp)
target_link_libraries(demo_populate_aff_server ${Boost_LIBRARIES} lcm affordance)

#=====action database 
add_executable(test_database_manager
  src/test/test_database_manager.cpp
  src/DatabaseManager.cpp)
target_link_libraries(test_database_manager ${Boost_LIBRARIES} lcm affordance action_authoring)
pods_use_pkg_config_packages(test_database_manager ${REQUIRED_PACKAGES})
{'fraction_non_alphanumeric': 0.07833436404864977, 'fraction_numerical': 0.0037105751391465678, 'mean_word_length': 7.952029520295203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2636789', 'n_tokens_mistral': 1757, 'n_tokens_neox': 1692, 'n_words': 276}