Hey guys,

 

So to warn you, this is really more of a regular _expression_ question than a cmake question but since the problem is in a cmake script I thought you guys may cut me some slack. J  In any case, I have a situation where my source directory contains the following:

 

Something.cpp

SomethingElse.cpp

File_Win32.cpp

File_Linux.cpp

File_Mac.cpp

 

What I want to do is glob for all files not having an _Win32, or a _Linux, etc. and then in the cmake script based on which OS I’m on, glob for the appropriate OS specific files. I assuming CMake can support this just fine since I believe FILE (GLOB []) takes a regular _expression_. Could someone tell me what the regex. Is for this operation?

 

The results should be: PLATFORM_INDEPENDENT_SOURCES = Something.cpp SomethingElse.cpp

                                 WIN32_SOURCES = File_Win32.cpp

 

The PLATFORM_INDEPENDENT_SOURCES is the part I am having troubles with figuring out the regular _expression_ for.

 

Thanks.

 

-Matt

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to