Make mkcontrollers script work when building as a submodule

This commit is contained in:
2026-05-12 21:38:08 -04:00
parent 6f62e674d5
commit 23dbc7d985
2 changed files with 5 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ else()
if(NOT TARGET akerror::akerror)
find_package(akerror REQUIRED)
endif()
if(NOT TARGET akstdib::akstdlib)
if(NOT TARGET akstdlib::akstdlib)
find_package(akstdlib REQUIRED)
endif()
if(NOT TARGET jansson::jansson)
@@ -50,7 +50,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/akgl.pc.in ${CMAKE_CURRENT_BINARY_DIR
add_custom_command(
OUTPUT ${GAMECONTROLLERDB_H}
COMMAND ../mkcontrollermappings.sh
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/mkcontrollermappings.sh ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Generating controller mappings ..."
)
@@ -76,6 +76,7 @@ add_library(akgl SHARED
${GAMECONTROLLERDB_H}
)
add_library(akgl::akgl ALIAS akgl)
add_executable(charviewer util/charviewer.c)
add_executable(test_actor tests/actor.c)