diff --git a/engine/audio/CMakeLists.txt b/engine/audio/CMakeLists.txt index 15a444c..863189a 100755 --- a/engine/audio/CMakeLists.txt +++ b/engine/audio/CMakeLists.txt @@ -10,5 +10,4 @@ target_link_libraries(Audio PRIVATE opusfile portaudio_static Core) -target_compile_features(Audio PUBLIC cxx_std_17) -set_target_properties(Audio PROPERTIES CXX_EXTENSIONS OFF) +set_engine_properties(Audio) diff --git a/engine/core/CMakeLists.txt b/engine/core/CMakeLists.txt index 9e2e8fc..a5f11b8 100755 --- a/engine/core/CMakeLists.txt +++ b/engine/core/CMakeLists.txt @@ -1,10 +1,3 @@ -if(TARGET BulletDynamics) - set(BULLET_LIBRARIES BulletDynamics BulletCollision LinearMath) - set(BULLET_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/_deps/bullet-src/src) -else() - find_package(Bullet REQUIRED) -endif() - set(SRC include/engine.hpp include/app.hpp @@ -41,7 +34,7 @@ add_library(Core STATIC ${SRC}) target_include_directories(Core PUBLIC include) target_include_directories(Core SYSTEM PUBLIC - ${BULLET_INCLUDE_DIRS}) + ${CMAKE_BINARY_DIR}/_deps/bullet-src/src) target_link_libraries(Core PUBLIC Utility GFX @@ -53,5 +46,7 @@ target_link_libraries(Core PUBLIC ${EXTRA_LIBRARIES} Asset PRIVATE - ${BULLET_LIBRARIES}) + BulletDynamics + BulletCollision + LinearMath) set_engine_properties(Core) diff --git a/engine/core/src/file.cpp b/engine/core/src/file.cpp index c9b55dd..d516dc3 100755 --- a/engine/core/src/file.cpp +++ b/engine/core/src/file.cpp @@ -45,3 +45,7 @@ file::Path file::get_domain_path(const Domain domain) { file::Path parent_domain(const file::Path path) { return path; } + +file::Path file::get_relative_path(const Domain domain, const Path path) { + // unimplemented +} diff --git a/engine/gfx/metal/CMakeLists.txt b/engine/gfx/metal/CMakeLists.txt index a915562..c2c9841 100755 --- a/engine/gfx/metal/CMakeLists.txt +++ b/engine/gfx/metal/CMakeLists.txt @@ -1,5 +1,7 @@ -set(HEADERS +set(SRC include/gfx_metal.hpp + + src/gfx_metal.mm src/gfx_metal_buffer.hpp src/gfx_metal_pipeline.hpp src/gfx_metal_texture.hpp @@ -8,8 +10,7 @@ set(HEADERS src/gfx_metal_sampler.hpp) add_library(GFXMetal STATIC - src/gfx_metal.mm - ${HEADERS}) + ${SRC}) set_target_properties(GFXMetal PROPERTIES FRAMEWORK TRUE diff --git a/engine/log/CMakeLists.txt b/engine/log/CMakeLists.txt index 3b3722d..ea0cffc 100755 --- a/engine/log/CMakeLists.txt +++ b/engine/log/CMakeLists.txt @@ -4,6 +4,5 @@ set(SRC add_library(Log STATIC ${SRC}) target_include_directories(Log PUBLIC include) -target_compile_features(Log PUBLIC cxx_std_17) -set_target_properties(Log PROPERTIES CXX_EXTENSIONS OFF) target_link_libraries(Log PRIVATE Utility) +set_engine_properties(Log) diff --git a/engine/math/CMakeLists.txt b/engine/math/CMakeLists.txt index 9469342..dbd9363 100755 --- a/engine/math/CMakeLists.txt +++ b/engine/math/CMakeLists.txt @@ -11,5 +11,4 @@ set(SRC add_library(Math STATIC ${SRC}) target_include_directories(Math PUBLIC include) -target_compile_features(Math PUBLIC cxx_std_17) -set_target_properties(Math PROPERTIES CXX_EXTENSIONS OFF) +set_engine_properties(Math) diff --git a/tools/common/CMakeLists.txt b/tools/common/CMakeLists.txt index b9c5849..59e8219 100755 --- a/tools/common/CMakeLists.txt +++ b/tools/common/CMakeLists.txt @@ -1,4 +1,4 @@ -add_library(EditorCommon +set(SRC include/commoneditor.hpp include/debugpass.hpp include/undostack.hpp @@ -6,10 +6,11 @@ add_library(EditorCommon src/commoneditor.cpp src/debugpass.cpp src/undostack.cpp) + +add_library(EditorCommon ${SRC}) target_include_directories(EditorCommon PUBLIC include) target_link_libraries(EditorCommon PUBLIC Renderer imgui Core) -set_target_properties(EditorCommon PROPERTIES - CXX_STANDARD 17) +set_engine_properties(EditorCommon) diff --git a/tools/modelcompiler/CMakeLists.txt b/tools/modelcompiler/CMakeLists.txt index 16053aa..912eae2 100755 --- a/tools/modelcompiler/CMakeLists.txt +++ b/tools/modelcompiler/CMakeLists.txt @@ -16,5 +16,4 @@ target_include_directories(ModelCompiler PUBLIC include PRIVATE ${ASSIMP_INCLUDE_DIRS}) -add_dependencies(ModelCompiler BuildShaders) set_engine_properties(ModelCompiler)