This commit is contained in:
Nishi 2025-12-17 22:55:22 +09:00
commit f633191272
Signed by: nishi
GPG key ID: 27EF69B208EB9343

View file

@ -20,6 +20,7 @@ macro(mde_setup_base type name dir)
elseif(${type} STREQUAL "library") elseif(${type} STREQUAL "library")
add_library( add_library(
${name} ${name}
SHARED
${${name}_SRC} ${${name}_SRC}
) )
endif() endif()
@ -48,8 +49,8 @@ macro(mde_setup_project name dir)
endmacro() endmacro()
macro(mde_setup_library name) macro(mde_setup_library name)
if(ARGV2) if(NOT ${ARGV1} STREQUAL "")
mde_setup_base(library ${name} ARGV2) mde_setup_base(library ${name} ${ARGV1})
else() else()
mde_setup_base(library ${name} ${CMAKE_INSTALL_LIBDIR}) mde_setup_base(library ${name} ${CMAKE_INSTALL_LIBDIR})
endif() endif()