cmake_minimum_required(VERSION 3.15) project(my_rpg C) set(CMAKE_C_STANDARD 11) include_directories(include) include_directories(lib/gamacon/include) include_directories(lib/gamacon/include/components) include_directories(lib/gamacon/include/components/controllers) include_directories(lib/gamacon/include/systems) include_directories(lib/gamacon/include/systems/controllers) include_directories(lib/my/include) include_directories(lib/xmlparser/include) add_executable(my_rpg include/my.h include/setup.h include/components/controllers/keyboard_controller.h lib/gamacon/include/components/camerafollow_component.h lib/gamacon/include/components/collision_component.h include/components/controllable_component.h include/systems/map_movement_system.h include/systems/game_manager_system.h lib/gamacon/include/components/fixed_to_cam_component.h lib/gamacon/include/components/friction_component.h lib/gamacon/include/components/friction_giver.h lib/gamacon/include/components/movable_component.h lib/gamacon/include/components/parallax_component.h lib/gamacon/include/components/renderer.h lib/gamacon/include/components/transform_component.h lib/gamacon/include/components/vertex_component.h include/systems/controllers/keyboard_controller_system.h lib/gamacon/include/systems/camerafollow_system.h lib/gamacon/include/systems/collision_system.h lib/gamacon/include/systems/friction_system.h lib/gamacon/include/systems/movable_system.h lib/gamacon/include/systems/parallax_system.h lib/gamacon/include/systems/sfml_renderer_system.h lib/gamacon/include/component.h lib/gamacon/include/data.h lib/gamacon/include/engine.h lib/gamacon/include/entity.h lib/gamacon/include/entity_factory.h lib/gamacon/include/list.h lib/gamacon/include/my.h lib/gamacon/include/prefab.h lib/gamacon/include/quadtree.h lib/gamacon/include/read_line.h lib/gamacon/include/scene.h lib/gamacon/include/sfml_renderer.h lib/gamacon/include/sprite.h lib/gamacon/include/system.h lib/gamacon/include/tags.h lib/gamacon/include/text.h lib/gamacon/include/tupple.h lib/gamacon/include/utility.h lib/gamacon/include/vector2.h lib/gamacon/include/xml.h src/components/controllers/keyboard_controller.c lib/gamacon/src/components/renderers/anim_renderer.c lib/gamacon/src/components/renderers/map_renderer.c lib/gamacon/src/components/renderers/sprite_renderer.c lib/gamacon/src/components/renderers/text_renderer.c lib/gamacon/src/components/camera_follow.c lib/gamacon/src/components/collision_component.c src/components/controllable_component.c lib/gamacon/src/components/fixed_to_cam.c lib/gamacon/src/components/friction_component.c lib/gamacon/src/components/friction_giver.c lib/gamacon/src/components/movable_component.c lib/gamacon/src/components/parallax_component.c lib/gamacon/src/components/renderer.c lib/gamacon/src/components/transform_component.c lib/gamacon/src/components/vertex_component.c lib/gamacon/src/deserializer/deserialize_entity.c lib/gamacon/src/deserializer/prefab.c lib/gamacon/src/engine/discard_player.c lib/gamacon/src/engine/engine.c lib/gamacon/src/engine/engine_component_builder.c lib/gamacon/src/engine/engine_dataloader.c lib/gamacon/src/engine/engine_internal.c lib/gamacon/src/engine/engine_system_builder.c lib/gamacon/src/entity/entity.c lib/gamacon/src/entity/entity_factory.c lib/gamacon/src/scene/scene.c lib/gamacon/src/scene/scene_destroy.c lib/gamacon/src/scene/scene_loader.c lib/gamacon/src/sfml_renderer/sfml_dataloaders.c lib/gamacon/src/sfml_renderer/sfml_drawer.c lib/gamacon/src/sfml_renderer/sfml_functions.c lib/gamacon/src/sfml_renderer/sfml_music_player.c lib/gamacon/src/sfml_renderer/sfml_vertex.c lib/gamacon/src/sfml_renderer/texture_utility.c src/systems/controllers/keyboard_controller_system.c lib/gamacon/src/systems/camera_follow_system.c lib/gamacon/src/systems/collision_system.c lib/gamacon/src/systems/fixed_to_cam_pseudosystem.c lib/gamacon/src/systems/friction_system.c lib/gamacon/src/systems/movable_system.c lib/gamacon/src/systems/parallax_system.c lib/gamacon/src/systems/sfml_renderer_system.c lib/gamacon/src/utility/arraylen.c lib/gamacon/src/utility/list.c lib/gamacon/src/utility/my_realloc.c lib/gamacon/src/utility/tupple.c lib/gamacon/src/utility/vector2.c lib/gamacon/src/component.c lib/gamacon/src/system.c lib/my/include/formaters.h lib/my/include/my.h lib/my/my/alphanum_helper.c lib/my/my/index_of.c lib/my/my/my_compute_factorial_it.c lib/my/my/my_compute_factorial_rec.c lib/my/my/my_compute_power_it.c lib/my/my/my_compute_square_root.c lib/my/my/my_evil_str.c lib/my/my/my_find_prime_sup.c lib/my/my/my_getnbr.c lib/my/my/my_getnbr_base.c lib/my/my/my_getnbr_base.c lib/my/my/my_is_prime.c lib/my/my/my_isneg.c lib/my/my/my_print_alpha.c lib/my/my/my_print_comb.c lib/my/my/my_print_comb2.c lib/my/my/my_print_combn.c lib/my/my/my_print_digits.c lib/my/my/my_print_revalpha.c lib/my/my/my_put_nbr.c lib/my/my/my_putchar.c lib/my/my/my_putlong_base.c lib/my/my/my_putnbr_base.c lib/my/my/my_putstr.c lib/my/my/my_revstr.c lib/my/my/my_show_words_array.c lib/my/my/my_showmem.c lib/my/my/my_showstr.c lib/my/my/my_sort_int_array.c lib/my/my/my_str_isalpha.c lib/my/my/my_str_islower.c lib/my/my/my_str_isnum.c lib/my/my/my_str_isprintable.c lib/my/my/my_str_isupper.c lib/my/my/my_str_to_word_array.c lib/my/my/my_strcapitalize.c lib/my/my/my_strcat.c lib/my/my/my_strchr.c lib/my/my/my_strcmp.c lib/my/my/my_strcpy.c lib/my/my/my_strdup.c lib/my/my/my_strlen.c lib/my/my/my_strlowcase.c lib/my/my/my_strncat.c lib/my/my/my_strncmp.c lib/my/my/my_strncpy.c lib/my/my/my_strstr.c lib/my/my/my_strupcase.c lib/my/my/my_swap.c lib/my/my/tostr.c lib/my/my/utility.c lib/my/src/formaters/big_hexa_formater.c lib/my/src/formaters/char_formater.c lib/my/src/formaters/float_formater.c lib/my/src/formaters/hexa_formater.c lib/my/src/formaters/int_formater.c lib/my/src/formaters/no_format.c lib/my/src/formaters/octal_formater.c lib/my/src/formaters/ptr_formater.c lib/my/src/formaters/string_formater.c lib/my/src/formaters/string_nonprintable_formater.c lib/my/src/formaters/ubinary_formater.c lib/my/src/formaters/uint_formater.c lib/my/src/get_nbr_size.c lib/my/src/my_putlonglong_base.c lib/my/src/printf.c lib/my/src/printf_utility.c lib/quadtree/include/array.h lib/quadtree/include/quadtree_internal.h lib/quadtree/src/utility/calloc.c lib/quadtree/src/array.c lib/quadtree/src/qt_collide.c lib/quadtree/src/qt_destroy.c lib/quadtree/src/qt_layer.c lib/quadtree/src/qt_position_overlap.c lib/quadtree/src/qt_split.c lib/quadtree/src/quadtree.c lib/xmlparser/include/my.h lib/xmlparser/include/xml.h lib/xmlparser/include/xml_internal.h lib/xmlparser/src/child.c lib/xmlparser/src/floatutils.c lib/xmlparser/src/helper.c lib/xmlparser/src/list_utility.c lib/xmlparser/src/parsenode.c lib/xmlparser/src/rawnode.c lib/xmlparser/src/strangeget.c lib/xmlparser/src/xml_destroy.c lib/xmlparser/src/xmlget.c lib/xmlparser/src/xmlparser.c lib/xmlparser/src/xmlproperties.c src/game_loader.c src/main.c lib/gamacon/include/errors.h lib/gamacon/src/ui/button.c lib/gamacon/src/ui/setup_ui.c lib/gamacon/include/ui.h src/main_menu.c lib/gamacon/src/components/clickable_component.c lib/gamacon/include/components/clickable_component.h lib/gamacon/src/systems/clickable_system.c lib/gamacon/src/sfml_renderer/sfml_events.c lib/my/my/my_str_replace.c lib/gamacon/src/sfml_renderer/sfml_init.c lib/gamacon/src/sfml_renderer/sfml_events.c lib/gamacon/include/map_utils.h lib/xmlparser/src/otherget.c src/options.c lib/gamacon/src/components/input_component.c lib/gamacon/include/components/input_component.h lib/xmlparser/src/otherget.c src/options.c lib/gamacon/src/components/input_component.c lib/gamacon/include/components/input_component.h lib/gamacon/src/components/tag_component.c lib/gamacon/include/components/tag_component.h src/components/game_manager.c include/components/game_manager.h include/errors_str.h lib/gamacon/include/tile_collision_manager.h lib/gamacon/src/engine/event_manager.c lib/gamacon/include/event_manager.h src/systems/game_manager_system.c include/systems/game_manager_system.h lib/gamacon/include/keybindings.h lib/gamacon/include/keybindings.h lib/gamacon/src/ui/tooltip.c lib/gamacon/src/components/tooltip_component.c lib/gamacon/include/components/tooltip_component.h lib/gamacon/src/systems/tooltip_system.c lib/gamacon/src/isometry/vertex_data_loader.c lib/gamacon/src/isometry/map_utils.c lib/gamacon/src/isometry/tile_collisions.c lib/gamacon/include/vertex_data_loader.h lib/gamacon/include/callbacks.h src/framerate.c lib/gamacon/src/isometry/isometry.c lib/gamacon/include/isometry.h lib/gamacon/src/components/renderers/anim_utils.c src/components/map_movement.c include/components/map_movement.h src/systems/map_movement_system.c lib/gamacon/src/components/renderers/anim_utils.c lib/gamacon/src/isometry/map_utilities.c lib/gamacon/src/sfml_renderer/sfml_utilities.c lib/gamacon/src/components/map_linker.c lib/gamacon/include/components/map_linker.h lib/gamacon/src/systems/map_linker_system.c lib/gamacon/include/tile.h src/components/dialog_holder.c include/components/dialog_holder.h lib/gamacon/include/components/map_linker.h lib/gamacon/src/systems/map_linker_system.c src/components/health_component.c include/components/health_component.h src/components/health_methods.c lib/gamacon/src/sfml_renderer/sfml_utilities.c lib/gamacon/src/components/map_linker.c lib/gamacon/include/components/map_linker.h lib/gamacon/src/systems/map_linker_system.c lib/gamacon/include/tile.h src/components/dialog_holder.c include/components/dialog_holder.h src/systems/dialog_manager.c src/map_editor/map_interactions.c src/map_editor/brush_component.c src/map_editor/selectors.c src/map_editor/toolbar.c src/components/game_display.c src/systems/game_display_system.c include/map_editor.h lib/gamacon/include/sfml_init.h src/components/xp_component.c include/components/xp_component.h src/components/xp_methods.c src/dialog_input.c src/systems/dialog_methods.c src/systems/combat_manager.c include/systems/combat_manager.h src/components/player_component.c include/components/player_component.h src/enemy_dataloader.c include/enemy.h include/components/combat_holder.h src/components/dialog_methods.c src/components/attack_component.c include/components/attack_component.h src/systems/combat_methods.c src/combat/attacks.c src/sound.c src/player_utilities.c include/player_utilities.h include/systems/inventory.h include/systems/game_over.h src/npc/mia.c lib/gamacon/src/scene/scene_constructor.c src/npc/fisherman.c src/npc/lumberjack.c src/npc/smith.c src/components/particule_component.c include/components/particule_component.h src/systems/particule_system.c include/systems/particule_system.h src/player_utilities.c include/player_utilities.h src/inventory.c include/systems/inventory.h src/game_over.c include/systems/game_over.h src/npc/mia.c lib/gamacon/src/scene/scene_constructor.c src/npc/fisherman.c src/npc/lumberjack.c src/npc/smith.c src/npc/mage.c src/combat/boss.c src/components/combat_holder.c src/systems/combat_utility.c src/systems/particule_methods.c ) add_compile_options(-W -Wall -Wextra -Wshadow) target_link_libraries(my_rpg csfml-system csfml-graphics csfml-audio csfml-window m )