Comments (2)
These are examples, there are no references to aux_source_directory
. The place to report CMake issues is https://gitlab.kitware.com/cmake/cmake
from swift-cmake-examples.
std::vector<std::string> files;
// Load all the files in the directory
cmsys::Directory dir;
if (dir.Load(tdir)) {
size_t numfiles = dir.GetNumberOfFiles();
for (size_t i = 0; i < numfiles; ++i) {
std::string file = dir.GetFile(static_cast<unsigned long>(i));
// Split the filename into base and extension
std::string::size_type dotpos = file.rfind('.');
if (dotpos != std::string::npos) {
auto ext = cm::string_view(file).substr(dotpos + 1);
// Process only source files
auto* cm = mf.GetCMakeInstance();
if (dotpos > 0 && cm->IsACLikeSourceExtension(ext)) {
std::string fullname = cmStrCat(templateDirectory, '/', file);
// add the file as a class file so
// depends can be done
cmSourceFile* sf = mf.GetOrCreateSource(fullname);
sf->SetProperty("ABSTRACT", "0");
files.push_back(std::move(fullname));
}
}
}
}
https://github.com/Kitware/CMake/blob/90d5d4285b544cd8d93cfa883051c66787e4d543/Source/cmake.cxx#L215
// The "c" extension MUST precede the "C" extension.
setupExts(this->CLikeSourceFileExtensions,
{ "c", "C", "c++", "cc", "cpp", "cxx", "cu", "mpp", "m", "M",
"mm", "ixx", "cppm" });
from swift-cmake-examples.
Related Issues (15)
- Build failure using Ninja generator HOT 4
- CMAKE_Swift_COMPILER HOT 7
- Cmake with packages HOT 3
- Support for C code? HOT 8
- Build failure: unknown argument: '-static' HOT 2
- Failing to build on Windows HOT 6
- Support for use with XCode? HOT 1
- Cmake and Ninja Error on Windows HOT 10
- Build HelloWorld and HelloMini failed HOT 6
- CMake problem when building HelloWorld project HOT 9
- Failed to compile HelloWorld HOT 7
- Test fails HOT 2
- Problems while using on macOS HOT 1
- CCore is useless HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-cmake-examples.