-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
+INCLUDE_DIRECTORIES(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${yasm_SOURCE_DIR}/frontends/yasm
+ )
ADD_CUSTOM_COMMAND(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/license.c
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
-ADD_EXECUTABLE(tasm
+ADD_EXECUTABLE(ytasm
tasm.c
tasm-options.c
+ ${yasm_SOURCE_DIR}/frontends/yasm/yasm-plugin.c
)
-TARGET_LINK_LIBRARIES(tasm libyasm ${LIBDL})
+TARGET_LINK_LIBRARIES(ytasm libyasm ${LIBDL})
SET_SOURCE_FILES_PROPERTIES(tasm.c PROPERTIES
OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/license.c
)
-INSTALL(TARGETS tasm RUNTIME DESTINATION bin)
+INSTALL(TARGETS ytasm RUNTIME DESTINATION bin)