40 lines
740 B
CMake
40 lines
740 B
CMake
# Copyright (c) 2025 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
# Libs
|
|
find_package(pspsdk REQUIRED)
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
target_link_libraries(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
# pspsdk
|
|
${SDL2_LIBRARIES}
|
|
)
|
|
|
|
# Compile definitions
|
|
target_compile_definitions(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
RENDER_WIDTH=480
|
|
RENDER_HEIGHT=272
|
|
RENDER_WINDOW_WIDTH_DEFAULT=480
|
|
RENDER_WINDOW_HEIGHT_DEFAULT=272
|
|
# DUSK_TIME_DYNAMIC=0
|
|
DUSK_TIME_DYNAMIC=1
|
|
)
|
|
|
|
# Includes
|
|
target_include_directories(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
${SDL2_INCLUDE_DIRS}
|
|
)
|
|
|
|
# Sources
|
|
target_sources(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
duskpsp.c
|
|
)
|
|
|
|
# Subdirs |