2022-12-23 04:59:41 +01:00
|
|
|
cmake_minimum_required(VERSION 3.22)
|
|
|
|
|
|
|
|
project(picasso)
|
|
|
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-L${DEVKITPRO}/libctru/lib -L${DEVKITPRO}/picaGL/lib -L${DEVKITPRO}/portlibs/3ds/lib -specs=3dsx.specs -Wl,--gc-sections")
|
|
|
|
|
2022-12-25 02:56:46 +01:00
|
|
|
include_directories(${DEVKITPRO}/libctru/include ${DEVKITPRO}/picaGL/include ${DEVKITPRO}/portlibs/3ds/include ${CMAKE_SOURCE_DIR}/include)
|
2022-12-23 04:59:41 +01:00
|
|
|
add_definitions("-D__3DS__")
|
|
|
|
|
|
|
|
enable_language(ASM)
|
|
|
|
|
|
|
|
add_library(${PROJECT_NAME} STATIC source/picasso_assembler.cpp source/picasso_library.cpp)
|
|
|
|
|
2022-12-25 02:56:46 +01:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/include)
|