<commit_before>#add_definitions(-DPACKAGE_BIN_DIR=\"${CMAKE_INSTALL_PREFIX}/bin\")
#add_definitions(-DPACKAGE_DATA_DIR=\"${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}\")
#add_definitions(-DPACKAGE_LIB_DIR=\"${CMAKE_INSTALL_PREFIX}/lib\")
#add_definitions(-DBUILD_DATA_DIR=\"${CMAKE_BINARY_DIR}/data\")

add_executable(war2edit
   main.c
   editor.c
   editor.h
   log.c
   log.h
   bitmap.c
   bitmap.h
   texture.c
   texture.h
   sprite.c
   sprite.h
   file.c
   file.h
   mainconfig.c
   mainconfig.h
   menu.c
   menu.h
   toolbar.c
   toolbar.h
   cell.c
   cell.h
   minimap.c
   minimap.h
   sel.c
   sel.h
   tile.c
   tile.h
   inwin.c
   inwin.h
   prefs.c
   prefs.h
   ipc.c
   ipc.h
   undo.c
   undo.h
   str.h
   war2edit.h
)

include_directories(
   SYSTEM
   ${EINA_INCLUDE_DIRS}
   ${EET_INCLUDE_DIRS}
   ${EVAS_INCLUDE_DIRS}
   ${ECORE_INCLUDE_DIRS}
   ${ECORE_FILE_INCLUDE_DIRS}
   ${ELEMENTARY_INCLUDE_DIRS}
   ${LIBPUD_INCLUDE_DIRS}
   ${LIBWAR2_INCLUDE_DIRS}
#  ${CAIRO_INCLUDE_DIRS}
)

target_link_libraries(war2edit
   ${EINA_LIBRARIES}
   ${EET_LIBRARIES}
   ${EVAS_LIBRARIES}
   ${ECORE_LIBRARIES}
   ${ECORE_FILE_LIBRARIES}
   ${ELEMENTARY_LIBRARIES}
   ${LIBPUD_LIBRARIES}
   ${LIBWAR2_LIBRARIES}
#  ${CAIRO_LIBRARIES}
)
add_dependencies(
   war2edit
   prefs
   themes
)

set_property(TARGET war2edit PROPERTY C_STANDARD 99)

target_compile_definitions(war2edit
   PRIVATE PACKAGE_BIN_DIR=\"${CMAKE_INSTALL_PREFIX}/bin\"
   PRIVATE PACKAGE_DATA_DIR=\"${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}\"
   PRIVATE PACKAGE_LIB_DIR=\"${CMAKE_INSTALL_PREFIX}/lib\"
   PRIVATE BUILD_DATA_DIR=\"${CMAKE_BINARY_DIR}/data\"
   PRIVATE EO_BETA_API=1
   PRIVATE EFL_BETA_API_SUPPORT=1
   PRIVATE EFL_EO_API_SUPPORT=1
   PRIVATE _DEFAULT_SOURCE=1
)


install(
   TARGETS war2edit
   RUNTIME DESTINATION bin
)
<commit_msg>cmake: include directories per target<commit_after>#add_definitions(-DPACKAGE_BIN_DIR=\"${CMAKE_INSTALL_PREFIX}/bin\")
#add_definitions(-DPACKAGE_DATA_DIR=\"${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}\")
#add_definitions(-DPACKAGE_LIB_DIR=\"${CMAKE_INSTALL_PREFIX}/lib\")
#add_definitions(-DBUILD_DATA_DIR=\"${CMAKE_BINARY_DIR}/data\")

add_executable(war2edit
   main.c
   editor.c
   editor.h
   log.c
   log.h
   bitmap.c
   bitmap.h
   texture.c
   texture.h
   sprite.c
   sprite.h
   file.c
   file.h
   mainconfig.c
   mainconfig.h
   menu.c
   menu.h
   toolbar.c
   toolbar.h
   cell.c
   cell.h
   minimap.c
   minimap.h
   sel.c
   sel.h
   tile.c
   tile.h
   inwin.c
   inwin.h
   prefs.c
   prefs.h
   ipc.c
   ipc.h
   undo.c
   undo.h
   str.h
   war2edit.h
)

target_include_directories(war2edit
   SYSTEM
   PUBLIC ${EINA_INCLUDE_DIRS}
   PUBLIC ${EET_INCLUDE_DIRS}
   PUBLIC ${EVAS_INCLUDE_DIRS}
   PUBLIC ${ECORE_INCLUDE_DIRS}
   PUBLIC ${ECORE_FILE_INCLUDE_DIRS}
   PUBLIC ${ELEMENTARY_INCLUDE_DIRS}
   PUBLIC ${LIBPUD_INCLUDE_DIRS}
   PUBLIC ${LIBWAR2_INCLUDE_DIRS}
#  ${CAIRO_INCLUDE_DIRS}
)

target_link_libraries(war2edit
   ${EINA_LIBRARIES}
   ${EET_LIBRARIES}
   ${EVAS_LIBRARIES}
   ${ECORE_LIBRARIES}
   ${ECORE_FILE_LIBRARIES}
   ${ELEMENTARY_LIBRARIES}
   ${LIBPUD_LIBRARIES}
   ${LIBWAR2_LIBRARIES}
#  ${CAIRO_LIBRARIES}
)
add_dependencies(
   war2edit
   prefs
   themes
)

set_property(TARGET war2edit PROPERTY C_STANDARD 99)

target_compile_definitions(war2edit
   PRIVATE PACKAGE_BIN_DIR=\"${CMAKE_INSTALL_PREFIX}/bin\"
   PRIVATE PACKAGE_DATA_DIR=\"${CMAKE_INSTALL_PREFIX}/share/${CMAKE_PROJECT_NAME}\"
   PRIVATE PACKAGE_LIB_DIR=\"${CMAKE_INSTALL_PREFIX}/lib\"
   PRIVATE BUILD_DATA_DIR=\"${CMAKE_BINARY_DIR}/data\"
   PRIVATE EO_BETA_API=1
   PRIVATE EFL_BETA_API_SUPPORT=1
   PRIVATE EFL_EO_API_SUPPORT=1
   PRIVATE _DEFAULT_SOURCE=1
)


install(
   TARGETS war2edit
   RUNTIME DESTINATION bin
)

{'fraction_non_alphanumeric': 0.11093544137022397, 'fraction_numerical': 0.008168642951251647, 'mean_word_length': 3.9107373868046573, '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': '1023570', 'n_tokens_mistral': 1735, 'n_tokens_neox': 1613, 'n_words': 202}