Add linux support
This commit is contained in:
@@ -90,15 +90,13 @@ target_compile_definitions(destrum
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
if (BUILD_SHARED_LIBS)
|
||||
target_link_libraries(destrum
|
||||
PUBLIC SDL2::SDL2main SDL2::SDL2
|
||||
)
|
||||
else ()
|
||||
target_link_libraries(destrum
|
||||
PUBLIC SDL2::SDL2main SDL2::SDL2-static
|
||||
)
|
||||
endif ()
|
||||
target_link_libraries(destrum PUBLIC SDL2::SDL2main)
|
||||
endif ()
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
target_link_libraries(destrum PUBLIC SDL2::SDL2)
|
||||
else ()
|
||||
target_link_libraries(destrum PUBLIC SDL2::SDL2-static)
|
||||
endif ()
|
||||
|
||||
target_compile_definitions(destrum
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
#define UTIL_H
|
||||
|
||||
#include <filesystem>
|
||||
#include <optional>
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
#include "glm/vec4.hpp"
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
class GameObject;
|
||||
class Transform;
|
||||
|
||||
|
||||
class Component: public Object {
|
||||
public:
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
#include <destrum/ObjectModel/Object.h>
|
||||
#include <destrum/ObjectModel/Transform.h>
|
||||
|
||||
class Scene;
|
||||
|
||||
class GameObject final: public Object {
|
||||
public:
|
||||
friend class Scene;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include <destrum/Graphics/Frustum.h>
|
||||
|
||||
#include <algorithm>
|
||||
Frustum edge::createFrustumFromCamera(const Camera& camera) {
|
||||
// TODO: write a non-horrible version of this, lol
|
||||
Frustum frustum;
|
||||
|
||||
1
destrum/third_party/CMakeLists.txt
vendored
1
destrum/third_party/CMakeLists.txt
vendored
@@ -63,4 +63,5 @@ set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
||||
set(ASSIMP_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
set(ASSIMP_INJECT_DEBUG_POSTFIX OFF CACHE BOOL "" FORCE)
|
||||
set(ASSIMP_INSTALL OFF CACHE BOOL "" FORCE)
|
||||
set(ASSIMP_WARNINGS_AS_ERRORS OFF CACHE BOOL "" FORCE)
|
||||
add_subdirectory(assimp)
|
||||
|
||||
Reference in New Issue
Block a user