1# Licensed under the Apache License, Version 2.0 (the "License"); 2# you may not use this file except in compliance with the License. 3# You may obtain a copy of the License at 4# http://www.apache.org/licenses/LICENSE-2.0 5# Unless required by applicable law or agreed to in writing, software 6# distributed under the License is distributed on an "AS IS" BASIS, 7# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 8# See the License for the specific language governing permissions and 9# limitations under the License. 10#include(SourceGroups) 11 12set(SSRC ${CMAKE_SOURCE_DIR}) 13set(BSRC ${CMAKE_BINARY_DIR}) 14 15set(_CPP ".*\\.cpp") 16set(CPP "${_CPP}$") 17 18set(_H ".*\\.h") 19set(H "${_H}$") 20 21set(H_CPP "(${H}|${CPP})") 22 23source_group("Resource files" ".*\\.(rc|ico)") 24 25source_group("api" "${SSRC}/api/${H_CPP}") 26source_group("arch" "${SSRC}/arch/${H_CPP}") 27source_group("ccmain" "${SSRC}/ccmain/${H_CPP}") 28source_group("ccstruct" "${SSRC}/ccstruct/${H_CPP}") 29source_group("ccutil" "${SSRC}/ccutil/${H_CPP}") 30source_group("classify" "${SSRC}/classify/${H_CPP}") 31source_group("cutil" "${SSRC}/cutil/${H_CPP}") 32source_group("dict" "${SSRC}/dict/${H_CPP}") 33source_group("lstm" "${SSRC}/lstm/${H_CPP}") 34source_group("opencl" "${SSRC}/opencl/${H_CPP}") 35source_group("textord" "${SSRC}/textord/${H_CPP}") 36source_group("viewer" "${SSRC}/viewer/${H_CPP}") 37source_group("wordrec" "${SSRC}/wordrec/${H_CPP}") 38