Files
amethyst/CMakeLists.txt
tobid7 c3a0e936c8 # Additions
- libpicasso (shader compiling)
- linearAllocator template (for std::vector)
- palladium vec and mat api
- iron (2d renderer)
2025-11-22 14:55:01 +01:00

31 lines
800 B
CMake
Executable File

cmake_minimum_required(VERSION 3.22)
project(amethyst)
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/amethyst.cpp
source/image.cpp
source/renderer.cpp
source/texture.cpp
source/utils.cpp
source/c3d.cpp
source/ctru.cpp
source/iron.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})