mirror of
https://github.com/SysRay/psOff_public.git
synced 2024-11-23 06:19:41 +00:00
24 lines
570 B
CMake
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) |