
# Source Files
set(EDITOR_SRC
"editor.cpp"
"editor_helpers.cpp"
"project.cpp" 
"component_guis.cpp"
"panels/about.cpp"
"panels/asset_browser.cpp"
"panels/world_tree.cpp"
"panels/world_view.cpp"
"panels/properties_view.cpp"
"contents/content_manager.cpp"
"contents/editor_asset.cpp"
"contents/world.cpp"
"contents/tile_map.cpp"
"contents/tile_set.cpp"
"tools/map_editor/map_editor.cpp"
"tools/map_editor/panels/map_canvas.cpp"
"tools/map_editor/panels/tile_set_view.cpp"
)

add_library(editor ${EDITOR_SRC})

target_link_directories(editor 
PRIVATE ${PROJECT_BINARY_DIR}/external/nativefiledialog-extended)

target_link_libraries(editor nfd)

target_include_directories(editor
    PUBLIC "${PROJECT_BINARY_DIR}"
    PUBLIC ../../
    PUBLIC ../../run_modes
    PUBLIC external/nativefiledialog-extended/src/include
    PUBLIC ../../../external/glm
    PUBLIC ../../../external/glad/include
    PUBLIC ../../../external/glfw/include
    PUBLIC ../../../external/box2d/include
    PUBLIC ../../../external/
)