[CMake] Hi and some newbie questions
Goswin von Brederlow
brederlo at informatik.uni-tuebingen.de
Sat Sep 15 12:29:05 EDT 2007
Jack Kelly <endgame.dos at gmail.com> writes:
> Goswin von Brederlow wrote:
>> 'add_executable (mini-os.elf ....)' at least should work. The target
>> is a normal elf binary. The x86_64.o object file just doesn't tell
>> cmake enough to know how to link it. I figure it wants to know whether
>> this is C or C++ or some other language needing special flags. Once I
>> add some *.c file there or if I could teach cmake about *.S then it
>> should work.
> # To teach CMake about *.S I believe you'd need 4 files:
> # CMakeASMCompiler.cmake.in
> # CMakeASMInformation.cmake
> # CMakeDetermineASMCompiler.cmake
> # CMakeTestASMCompiler.cmake
>
> # There are similar ones for C, CXX and Java. You'd then be able to
> # write:
> PROJECT(MOOSE C ASM)
> # Or whatever the list of languages you use is.
I copied the CXX files and modified them for ASM. But what do I do
with them now?
I can create CMakeFiles/CMakeASMCompiler.cmake and cmake will use
it. But then it looks for CMakeASMInformation.cmake only in the
systems cmake directory.
How can I tell it that there are more modules that it should get from
inside my source?
MfG
Goswin
More information about the CMake
mailing list