diff --git a/qad/libs/CMakeLists.txt b/qad/libs/CMakeLists.txt new file mode 100644 index 0000000..1d6cfb3 --- /dev/null +++ b/qad/libs/CMakeLists.txt @@ -0,0 +1,26 @@ +set(DIRS) +file(GLOB _dl "[^.]*") +foreach(_D ${_dl}) + if(IS_DIRECTORY ${_D}) + list(APPEND DIRS ${_D}) + endif() +endforeach() + +set(qad_includes) +foreach(_D ${DIRS}) + get_filename_component(_dname "${_D}" NAME) + list(APPEND QT_MULTILIB_LIST qad_${_dname}) + list(APPEND qad_includes "${_D}") +endforeach() +set(QT_MULTILIB_LIST ${QT_MULTILIB_LIST} PARENT_SCOPE) +set(qad_includes ${qad_includes} PARENT_SCOPE) +foreach(_D ${DIRS}) + include_directories(${_D}) +endforeach() +foreach(_D ${DIRS}) + add_subdirectory(${_D}) +endforeach() + +if (LIB) + set(_ALL_TARGETS ${_ALL_TARGETS} PARENT_SCOPE) +endif() diff --git a/qad/utils/CMakeLists.txt b/qad/utils/CMakeLists.txt new file mode 100644 index 0000000..f2cede5 --- /dev/null +++ b/qad/utils/CMakeLists.txt @@ -0,0 +1,11 @@ +include_directories(${qad_includes}) +file(GLOB _dl "[^.]*") +foreach(_D ${_dl}) + if(IS_DIRECTORY ${_D}) + add_subdirectory(${_D}) + endif() +endforeach() + +if (LIB) + set(_ALL_TARGETS ${_ALL_TARGETS} PARENT_SCOPE) +endif()