psOff_public/modules/CMakeLists.txt
2024-03-10 14:30:22 +01:00

24 lines
570 B
CMake

MACRO(SUBDIRLIST result curdir)
FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
SET(dirlist "")
FOREACH(child ${children})
IF(IS_DIRECTORY ${curdir}/${child} AND NOT child STREQUAL "template")
LIST(APPEND dirlist ${child})
ENDIF()
ENDFOREACH()
SET(${result} ${dirlist})
ENDMACRO()
SUBDIRLIST(SUBDIRS ${CMAKE_CURRENT_SOURCE_DIR})
add_compile_definitions(__APICALL_IMPORT)
FOREACH(subdir ${SUBDIRS})
ADD_SUBDIRECTORY(${subdir})
add_dependencies(${subdir} dll2Nids)
ENDFOREACH()
install(TARGETS ${SUBDIRS}
LIBRARY DESTINATION modules)