add_library(filesystem STATIC filesystem.cpp filesystem.hpp path.hpp path.cpp)
target_include_directories(filesystem PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_options(filesystem PRIVATE ${GRANITE_CXX_FLAGS})
target_link_libraries(filesystem util)

target_compile_definitions(filesystem PRIVATE GRANITE_DEFAULT_ASSET_DIRECTORY=\"${CMAKE_CURRENT_SOURCE_DIR}/../assets\")
target_compile_definitions(filesystem PRIVATE GRANITE_DEFAULT_CACHE_DIRECTORY=\"${CMAKE_CURRENT_SOURCE_DIR}/../cache\")

if (WIN32)
    add_subdirectory(windows)
else()
    add_subdirectory(linux)
endif()
target_link_libraries(filesystem filesystem-os)
add_library(filesystem STATIC filesystem.cpp filesystem.hpp path.hpp path.cpp)
target_include_directories(filesystem PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_options(filesystem PRIVATE ${GRANITE_CXX_FLAGS})
target_link_libraries(filesystem util)

target_compile_definitions(filesystem PRIVATE GRANITE_DEFAULT_ASSET_DIRECTORY=\"${CMAKE_CURRENT_SOURCE_DIR}/../assets\")
target_compile_definitions(filesystem PRIVATE GRANITE_DEFAULT_CACHE_DIRECTORY=\"${CMAKE_BINARY_DIR}/cache\")

if (WIN32)
    add_subdirectory(windows)
else()
    add_subdirectory(linux)
endif()
target_link_libraries(filesystem filesystem-os)
Move pipeline cache to build directory.
Move pipeline cache to build directory.
