SourceGroups.cmake 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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. set(SSRC ${CMAKE_SOURCE_DIR})
  12. set(BSRC ${CMAKE_BINARY_DIR})
  13. set(_CPP ".*\\.cpp")
  14. set(CPP "${_CPP}$")
  15. set(_H ".*\\.h")
  16. set(H "${_H}$")
  17. set(H_CPP "(${H}|${CPP})")
  18. source_group("Resource files" ".*\\.(rc|ico)")
  19. source_group("api" "${SSRC}/api/${H_CPP}")
  20. source_group("arch" "${SSRC}/arch/${H_CPP}")
  21. source_group("ccmain" "${SSRC}/ccmain/${H_CPP}")
  22. source_group("ccstruct" "${SSRC}/ccstruct/${H_CPP}")
  23. source_group("ccutil" "${SSRC}/ccutil/${H_CPP}")
  24. source_group("classify" "${SSRC}/classify/${H_CPP}")
  25. source_group("cutil" "${SSRC}/cutil/${H_CPP}")
  26. source_group("dict" "${SSRC}/dict/${H_CPP}")
  27. source_group("lstm" "${SSRC}/lstm/${H_CPP}")
  28. source_group("textord" "${SSRC}/textord/${H_CPP}")
  29. source_group("viewer" "${SSRC}/viewer/${H_CPP}")
  30. source_group("wordrec" "${SSRC}/wordrec/${H_CPP}")