This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
22 lines (14 loc) · 9.68 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.21)
project(untitled C)
set(CMAKE_C_STANDARD 23)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/sdl2)
find_package(SDL2 REQUIRED SDL2)
find_package(SDL2_image REQUIRED)
find_package(SDL2TTF REQUIRED SDL2_ttf)
add_executable(untitled main.c source/html_scraper/html_scraper.c source/html_scraper/html_scraper.h source/html_scraper/tags/html_tag_variables.h source/html_scraper/tags/audio.h source/html_scraper/tags/base.h source/html_scraper/tags/audio.c source/html_scraper/tags/base.c source/html_scraper/tags/a.c source/html_scraper/tags/a.h source/html_scraper/tags/area.c source/html_scraper/tags/area.h source/html_scraper/tags/bdo.c source/html_scraper/tags/bdo.h source/html_scraper/tags/blockquote.h source/html_scraper/tags/blockquote.c source/html_scraper/tags/button.h source/html_scraper/tags/button.c source/html_scraper/tags/canvas.c source/html_scraper/tags/canvas.h source/html_scraper/tags/col.h source/html_scraper/tags/col.c source/html_scraper/tags/colgroup.h source/html_scraper/tags/colgroup.c source/html_scraper/tags/data.c source/html_scraper/tags/data.h source/html_scraper/tags/del.h source/html_scraper/tags/del.c source/html_scraper/tags/fieldset.c source/html_scraper/tags/fieldset.h source/html_scraper/tags/details.c source/html_scraper/tags/details.h source/html_scraper/tags/dialog.c source/html_scraper/tags/dialog.h source/html_scraper/tags/form.c source/html_scraper/tags/form.h source/html_scraper/tags/iframe.c source/html_scraper/tags/iframe.h source/html_scraper/tags/img.c source/html_scraper/tags/img.h source/html_scraper/tags/input.c source/html_scraper/tags/input.h source/html_scraper/tags/ins.c source/html_scraper/tags/ins.h source/html_scraper/tags/label.h source/html_scraper/tags/label.c source/html_scraper/tags/li.c source/html_scraper/tags/li.h source/html_scraper/tags/link.c source/html_scraper/tags/link.h source/html_scraper/tags/map.c source/html_scraper/tags/map.h source/html_scraper/tags/meta.c source/html_scraper/tags/meta.h source/html_scraper/tags/meter.c source/html_scraper/tags/meter.h source/html_scraper/tags/ol.h source/html_scraper/tags/ol.c source/html_scraper/html_tags.h source/html_scraper/tags/optgroup.c source/html_scraper/tags/optgroup.h source/html_scraper/tags/option.c source/html_scraper/tags/option.h source/html_scraper/tags/output.c source/html_scraper/tags/output.h source/html_scraper/tags/param.c source/html_scraper/tags/param.h source/html_scraper/tags/progress.c source/html_scraper/tags/progress.h source/html_scraper/tags/q.c source/html_scraper/tags/q.h source/html_scraper/tags/script.c source/html_scraper/tags/script.h source/html_scraper/tags/select.c source/html_scraper/tags/select.h source/html_scraper/tags/source.c source/html_scraper/tags/source.h source/html_scraper/tags/style.c source/html_scraper/tags/style.h source/html_scraper/tags/td.c source/html_scraper/tags/td.h source/html_scraper/tags/textarea.c source/html_scraper/tags/textarea.h source/html_scraper/tags/th.c source/html_scraper/tags/th.h source/html_scraper/tags/time.c source/html_scraper/tags/time.h source/html_scraper/tags/track.c source/html_scraper/tags/track.h source/html_scraper/tags/video.c source/html_scraper/tags/video.h source/html_scraper/html_tag_searcher.c source/html_scraper/html_tag_searcher.h source/css_scraper/css_scraper.c source/css_scraper/css_scraper.h source/widget.h source/css_scraper/css_widget.h source/css_scraper/properties/css_color.c source/css_scraper/properties/css_color.h source/css_scraper/properties/animation.c source/css_scraper/properties/animation.h source/css_scraper/properties/css_enum_variables.h source/css_scraper/properties/background.c source/css_scraper/properties/background.h source/css_scraper/properties/border.c source/css_scraper/properties/border.h source/css_scraper/properties/column.h source/css_scraper/properties/column.c source/css_scraper/properties/flex.c source/css_scraper/properties/flex.h source/css_scraper/properties/font.c source/css_scraper/properties/font.h source/css_scraper/properties/text.c source/css_scraper/css_properties_searcher.c source/css_scraper/css_properties_searcher.h source/html_scraper/tags/html_untagged_text.h source/css_scraper/css_tree.c source/css_scraper/css_tree.h source/web_engine/web_engine.c source/web_engine/web_engine.h source/drawer/main_drawer.c source/drawer/main_drawer.h source/network/network.c source/network/network.h source/css_scraper/css_all_properties.h source/css_scraper/properties/color.c source/css_scraper/properties/color.h source/css_scraper/properties/accent_color.h source/css_scraper/properties/accent_color.c source/css_scraper/properties/align.c source/css_scraper/properties/align.h source/css_scraper/properties/backdrop_filter.h source/css_scraper/properties/backdrop_filter.c source/css_scraper/properties/css_filter.c source/css_scraper/properties/css_filter.h source/css_scraper/properties/backface_visibility.c source/css_scraper/properties/backface_visibility.h source/drawer/drawer_backend/draw_text.c source/drawer/drawer_backend/draw_text.h source/drawer/tags/html_drawer.c source/drawer/tags/html_drawer.h source/drawer/tag_draw_functions.h source/drawer/tags/abbr_drawer.h source/drawer/tags/address_drawer.h source/drawer/tags/area_drawer.h source/drawer/tags/article_drawer.h source/drawer/tags/aside_drawer.h source/drawer/tags/audio_drawer.h source/drawer/tags/b_drawer.h source/drawer/tags/base_drawer.h source/drawer/tags/blockquote.h source/drawer/tags/body_drawer.h source/drawer/tags/br_drawer.h source/drawer/tags/button_drawer.h source/drawer/tags/canvas_drawer.h source/drawer/tags/caption_drawer.h source/drawer/tags/cite_drawer.h source/drawer/tags/code_drawer.h source/drawer/tags/col_drawer.h source/drawer/tags/colgroup_drawer.h source/drawer/tags/datalist_drawer.h source/drawer/tags/dd_drawer.h source/drawer/tags/del_drawer.h source/drawer/tags/details_drawer.h source/drawer/tags/dfn_drawer.h source/drawer/tags/div_drawer.h source/drawer/tags/dl_drawer.h source/drawer/tags/dt_drawer.h source/drawer/tags/em_drawer.h source/drawer/tags/fieldset_drawer.h source/drawer/tags/figcaption_drawer.h source/drawer/tags/figure_drawer.h source/drawer/tags/footer.h source/drawer/tags/form_drawer.h source/drawer/tags/h1_drawer.h source/drawer/tags/h2_drawer.h source/drawer/tags/h3_drawer.h source/drawer/tags/h4_drawer.h source/drawer/tags/h5_drawer.h source/drawer/tags/h6_drawer.h source/drawer/tags/header_drawer.h source/drawer/tags/hr_drawer.h source/drawer/tags/i_drawer.h source/drawer/tags/iframe_drawer.h source/drawer/tags/img_drawer.h source/drawer/tags/input_drawer.h source/drawer/tags/ins_drawer.h source/drawer/tags/kbd_drawer.h source/drawer/tags/label_drawer.h source/drawer/tags/legend_drawer.h source/drawer/tags/li_drawer.h source/drawer/tags/link_drawer.h source/drawer/tags/map_drawer.h source/drawer/tags/mark_drawer.h source/drawer/tags/nav_drawer.h source/drawer/tags/ol_drawer.h source/drawer/tags/output_drawer.h source/drawer/tags/p_drawer.h source/drawer/tags/pre_drawer.h source/drawer/tags/q_drawer.h source/drawer/tags/s_drawer.h source/drawer/tags/samp_drawer.h source/drawer/tags/section_drawer.h source/drawer/tags/small_drawer.h source/drawer/tags/strong_drawer.h source/drawer/tags/sub_drawer.h source/drawer/tags/summary_drawer.h source/drawer/tags/sup_drawer.h source/drawer/tags/table_drawer.h source/drawer/tags/tbody_drawer.h source/drawer/tags/td_drawer.h source/drawer/tags/tfoot_drawer.h source/drawer/tags/th_drawer.h source/drawer/tags/thead_drawer.h source/drawer/tags/tr_drawer.h source/drawer/tags/u_drawer.h source/drawer/tags/ul_drawer.h source/drawer/tags/var_drawer.h source/drawer/tags/video_drawer.h source/drawer/drawer_backend/sdl_drawer.h source/drawer/draw_properties.h source/drawer/tags/untagged_text_drawer.h source/drawer/tags/untagged_text_drawer.c source/drawer/drawer_backend/image_drawer.h source/drawer/drawer_backend/background_drawer.h source/functools/index_founder.h source/drawer/drawer_backend/image_drawer.h source/drawer/drawer_backend/background_drawer.h source/drawer/drawer_backend/background_drawer.c source/drawer/drawer_backend/image_drawer.c source/functools/index_founder.c source/css_scraper/properties/width.h source/css_scraper/properties/width.c source/css_scraper/properties/height.h source/css_scraper/properties/height.c source/css_scraper/properties/position.h source/css_scraper/properties/position.c source/css_scraper/properties/grid.h source/css_scraper/properties/grid.c source/css_scraper/properties/margin.h source/css_scraper/properties/margin.c source/css_scraper/properties/outline.c source/css_scraper/properties/outline.h source/css_scraper/properties/overflow.c source/css_scraper/properties/overflow.h source/css_scraper/properties/padding.c source/css_scraper/properties/padding.h source/css_scraper/properties/visibility.c source/css_scraper/properties/visibility.h source/css_scraper/properties/opacity.h source/css_scraper/properties/opacity.c source/css_scraper/properties/resize.c source/css_scraper/properties/resize.h source/css_scraper/properties/css_color_names.h source/drawer/drawer_backend/draw_line.h source/drawer/drawer_backend/draw_line.c source/drawer/drawer_backend/draw_rectangle.h source/drawer/drawer_backend/draw_rectangle.c source/drawer/drawer_backend/draw_border.h source/drawer/drawer_backend/draw_border.c source/css_scraper/css_synchronizer.c source/css_scraper/css_synchronizer.h source/drawer/drawer_backend/calculate_dimensions.c source/drawer/drawer_backend/calculate_dimensions.h source/drawer/tags/body_drawer.c source/drawer/tags/div_drawer.c)
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS} ${SDL2TTF_INCLUDE_DIR} ${SDL2IMAGE_INCLUDE_DIRS})
target_link_libraries(untitled
PRIVATE ${SDL2_LIBRARIES}
PRIVATE ${SDL2TTF_LIBRARY}
${SDL2IMAGE_LIBRARY}
)