Files
amethyst/CMakeLists.txt
tobid7 febf506a5e # Changes
- Add Debugstuff to main
- Add IsType and AutoLoad to AssetManager
- Add ID class for at compile time hashing
- Add A8 to image (but not supported yet)
- Fix error in Vertex constructor
- Add PathClear to PathFill func
- Add pCheckSize to check for overflows
- Make Tex in Texture a pointer ref
- Add default uv to texture
- Add own c++ exception
- Add FNV32 Hash func (compile and runtime)
- Fix Power2 check in texture loader
- Load Shader manualy in iron (cause it seems not working correctly with files)
2025-11-27 13:32:44 +01:00

37 lines
952 B
CMake
Executable File

cmake_minimum_required(VERSION 3.22)
project(amethyst)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED true)
option(AMY_BUILD_3DS "Build for 3ds" ON)
option(AMY_GOD_DEV "Turn this on if you think you are god" OFF)
# add_subdirectory(vendor/libpicasso)
add_library(${PROJECT_NAME} STATIC
source/app.cpp
source/assets.cpp
source/amethyst.cpp
source/image.cpp
source/renderer.cpp
source/texture.cpp
source/utils.cpp
source/c3d.cpp
source/ctru.cpp
source/iron/iron.cpp
source/iron/drawlist.cpp
source/maths/mat.cpp
)
target_include_directories(${PROJECT_NAME} PUBLIC include)
# target_link_libraries(${PROJECT_NAME} PUBLIC pica::pica)
if(${AMY_BUILD_3DS})
target_link_libraries(${PROJECT_NAME} PUBLIC m z ctru citro3d)
target_compile_definitions(${PROJECT_NAME} PUBLIC AMY_3DS )
endif()
add_subdirectory(example)
install(TARGETS ${PROJECT_NAME})