[CMake] nasm and cmake
Prakash Punnoor
lists at punnoor.de
Thu Nov 17 11:07:28 EST 2005
Brad King schrieb:
> Prakash Punnoor wrote:
>
>>Brad King schrieb:
>>
>>>Is that SET command before the PROJECT command? It is the PROJECT
>>>command that actually loads the language support.
>>
>>Yes, but I figured out inlcuding it manually gets my one step closer,
>>but still errors out:
>>
>>SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
>>INCLUDE(CMakeASMCompiler.cmake)
>>PROJECT(test ASM C)
>
>
> Please send me the *ASM* files you created for this and we'll try to fix
> this module path issue.
Uhm, it is far from complete and rather hacked together - so just a
small testing file (and I don't really now what most of the stuff does
there anyway...). Keeping that in mind, here it is
(CMakeASMCompiler.cmake). Do I need a CMakeASMInformation.cmake, as well?
INCLUDE(CMakeCommonLanguageInclude)
SET(CMAKE_ASM_COMPILER "nasm")
MARK_AS_ADVANCED(CMAKE_ASM_COMPILER)
SET(CMAKE_ASM_COMPILER_ARG1 "-f elf")
SET(CMAKE_ASM_COMPILER_LOADED 1)
SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS nasm)
IF(UNIX)
SET(CMAKE_ASM_OUTPUT_EXTENSION .o)
ELSE(UNIX)
SET(CMAKE_ASM_OUTPUT_EXTENSION .obj)
ENDIF(UNIX)
SET(CMAKE_ASM_COMPILER_ENV_VAR "ASM")
SET(CMAKE_ASM_COMPILE_OBJECT
"<CMAKE_ASM_COMPILER> -o <OBJECT> <SOURCE>")
SET(CMAKE_ASM_LINKER_PREFERENCE None)
MARK_AS_ADVANCED(
CMAKE_BUILD_TOOL
CMAKE_VERBOSE_MAKEFILE)
SET(CMAKE_ASM_INFOMATION_LOADED 1)
Cheers,
Prakash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20051117/25994054/signature-0001.pgp
More information about the CMake
mailing list