- Fix issue in texloader - add ivec2 to tecloader / screen - add draw func for iron - add bufCfg in 3 variants to c3d - add poc for c3d_permutation
36 lines
924 B
CMake
Executable File
36 lines
924 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/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})
|