35 lines
555 B
CMake
35 lines
555 B
CMake
# Copyright (c) 2025 Dominic Masters
|
|
#
|
|
# This software is released under the MIT License.
|
|
# https://opensource.org/licenses/MIT
|
|
|
|
# Compile defs
|
|
target_compile_definitions(${DUSK_TARGET_NAME}
|
|
PUBLIC
|
|
# DUSK_KEYBOARD_SUPPORT=1
|
|
)
|
|
|
|
# Libs
|
|
find_package(SDL2 REQUIRED)
|
|
|
|
target_link_libraries(${DUSK_TARGET_NAME}
|
|
PUBLIC
|
|
SDL2::SDL2
|
|
)
|
|
|
|
|
|
# Includes
|
|
target_include_directories(${DUSK_TARGET_NAME}
|
|
PUBLIC
|
|
${CMAKE_CURRENT_LIST_DIR}
|
|
)
|
|
|
|
# Sources
|
|
target_sources(${DUSK_TARGET_NAME}
|
|
PRIVATE
|
|
input.c
|
|
main.c
|
|
)
|
|
|
|
# Subdirs
|
|
add_subdirectory(display) |