]> granicus.if.org Git - yasm/commitdiff
Fix #171: Broken build in ytasm CMakeLists.txt.
authorPeter Johnson <peter@tortall.net>
Tue, 12 May 2009 01:47:59 +0000 (01:47 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 12 May 2009 01:47:59 +0000 (01:47 -0000)
Reported by: postmodern.mod3

svn path=/trunk/yasm/; revision=2201

frontends/tasm/CMakeLists.txt

index e89d5aeb57f624bc4c09ad2fb001b16d09f51232..982b95d1d7d25de4dcd9e0c585b5a2f29ea5125e 100644 (file)
@@ -1,4 +1,7 @@
-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
@@ -12,14 +15,15 @@ ADD_CUSTOM_COMMAND(
 
 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)