Initial Commit
This commit is contained in:
25
CMakeLists.txt
Executable file
25
CMakeLists.txt
Executable file
@@ -0,0 +1,25 @@
|
||||
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_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
|
||||
)
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC include)
|
||||
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})
|
||||
Reference in New Issue
Block a user