Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/core/CMakeLists.txt
Joshua Goins ca2c2c9d3d Move all engine-specific models, materials etc. to a new base directory
This is a huge change, and basically breaks everything (as per usual!)

First of, this includes stuff like shaders so anything involving those
are broken and then fixed. A new BuildAssets cmake file is added to
aid in running AssetCompiler, and it seems to work fine on the engine
base assets.

The File API will eventually be revamped to handle this new way of
organizing the files and domains will eventually be gotten rid of all
together since I probably will replace it with game directory
priorities. As it stands right now, there isn't a way to easily
replace say - render_options.cfg with your own game-specific version.

Apple builds are probably broken by this commit (since I'm moving
around content and shader directories) to be fixed later.
2022-05-21 18:28:48 -04:00

49 lines
No EOL
981 B
CMake
Executable file

set(SRC
include/engine.hpp
include/app.hpp
include/input.hpp
include/cutscene.hpp
include/physics.hpp
include/scene.hpp
include/imgui_backend.hpp
include/object.hpp
include/debug.hpp
include/components.hpp
include/imgui_utility.hpp
include/console.hpp
src/file.cpp
src/engine.cpp
src/input.cpp
src/physics.cpp
src/imgui_backend.cpp
src/scene.cpp
src/debug.cpp
src/console.cpp)
if(NOT ENABLE_IOS AND NOT ENABLE_TVOS)
set(EXTRA_LIBRARIES Audio)
endif()
add_library(Core STATIC ${SRC})
target_include_directories(Core PUBLIC
include)
target_include_directories(Core SYSTEM PUBLIC
${CMAKE_BINARY_DIR}/_deps/bullet-src/src)
target_link_libraries(Core PUBLIC
Asset
Math
Utility
nlohmann_json
Log
PRIVATE
GFX
Renderer
magic_enum
imgui
Platform
${EXTRA_LIBRARIES}
BulletDynamics
BulletCollision
LinearMath)
set_engine_properties(Core)