One way to approach the problem is to replace the plain CMake add_executable and add_library commands with wrapper functions or macros which do special processing of the files with the . Foo extension and pass the other arguments and options through to the standard add_executable or add_library commands. E.g.
Up vote 2 down vote favorite 1 share g+ share fb share tw.
When I add source files to a target they are automatically recognized if they are from the C/C++ file extensions. What I want to accomplish is that if I put in the sources xxx. Foo all the .
Foo files are processed with a predefined set of compiler commands. I know that the way to go is using add_custom_command but all the examples I have seen are using fixed filenames like the ones used here cmake.org/Wiki/CMake_FAQ#How_can_I_gener... Any ideas about the right approach to the problem? Cmake link|improve this question asked Jan 12 '11 at 17:27ancechu8911617 88% accept rate.
One way to approach the problem is to replace the plain CMake add_executable and add_library commands with wrapper functions or macros which do special processing of the files with the . Foo extension and pass the other arguments and options through to the standard add_executable or add_library commands. E.g.
: set (FOO_SRCS "main. Cpp" "module. Cpp" "xxx.
Foo" "yyy. Foo") foo_add_executable(fooexec ${FOO_SRCS}) foo_add_library(foolib ${FOO_SRCS}) The FindCUDA standard CMake module takes that approach. It adds CUDA_ADD_EXECUTABLE and CUDA_ADD_LIBRARY commands which feed source files with the extension .
Cu to the NVIDIA C compiler.
E.g. File( GLOB MY_FOO_FILES *. Foo ) add_library( foolib "main.
Cpp" ${MY_FOO_FILES} ) Or you could then run each file through a custom command.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.