INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_SOURCE_DIR}lib/expr
+ ${CMAKE_SOURCE_DIR}lib/vmalloc
+ ${CMAKE_SOURCE_DIR}lib/sfio
+ ${CMAKE_SOURCE_DIR}lib/ast
+ ${CMAKE_SOURCE_DIR}lib/ingraphs
+ ${CMAKE_SOURCE_DIR}lib/agraph
+ ${CMAKE_SOURCE_DIR}lib/cdt
)
# $Id$ $Revision$
## Process this file with cmake to produce Makefile
+INCLUDE( FindX11 )
+
SUBDIRS(
ws
os
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/ws/x11
+ ${CMAKE_CURRENT_SOURCE_DIR}/os/unix
+ ${CMAKE_CURRENT_SOURCE_DIR}/dot2l
+ ${X11_INCLUDE_DIR}
)
-
########### next target ###############
SET(lefty_SRCS
ADD_EXECUTABLE(lefty ${lefty_SRCS})
-#TARGET_LINK_LIBRARIES(lefty ${QT_AND_KDECORE_LIBS} )
+TARGET_LINK_LIBRARIES(lefty
+ ws
+ filereq
+ os
+ dot2l
+ Xaw
+ Xt
+ Xmu
+ Xext
+ X11
+# socket
+ m
+)
INSTALL_TARGETS(/bin lefty )
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
- ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/cmd/lefty
)
########### next target ###############
ADD_CUSTOM_COMMAND(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dotparse.c
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dotparse.h
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dotparse.y
- COMMAND bison -dv ${CMAKE_CURRENT_SOURCE_DIR} dotparse.y
- COMMAND cat < ${CMAKE_CURRENT_BINARY_DIR}/y.tab.c > ${CMAKE_CURRENT_BINARY_DIR}/dotparse.c
- COMMAND cat < ${CMAKE_CURRENT_BINARY_DIR}/y.tab.h > ${CMAKE_CURRENT_BINARY_DIR}/dotparse.h
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ OUTPUT dotparse.c
+ OUTPUT dotparse.h
+ DEPENDS dotparse.y
+ COMMAND yacc -dv dotparse.y
+ COMMAND cat < y.tab.c > dotparse.c
+ COMMAND cat < y.tab.h > dotparse.h
)
SET(dot2l_SRCS
+ dotparse.h
dot2l.c
dotlex.c
dotparse.c