c++ - Cmake:build YASM source files -
i using cmake 3.4.1 generate , build visual studio 2013 64bit c++ solution.one of project contains .asm files compile in visualstudio yasm assembler lib.how configure cmake use yasm files?i haven't found documentation example of how set up.
have following example:
cmake_minimum_required(version 3.0) project(yasmcmake) find_program(yasm_exe names yasm) add_custom_command(output hello.o command ${yasm_exe} args -f elf64 -o hello.o ${cmake_current_source_dir}/hello.asm) set(cmake_include_current_dir on) add_library(hello hello.o) set_target_properties(hello properties linker_language cxx)
of course need specify flags yasm depending on platform.
Comments
Post a Comment