ENH: use target link libraries and add the link directory for cmform

This commit is contained in:
Bill Hoffman 2002-02-04 22:00:33 -05:00
parent 1362bb41c8
commit 84f6fdd69f
1 changed files with 6 additions and 5 deletions

View File

@ -15,16 +15,17 @@ SOURCE_FILES( CURSES_SRCS
) )
INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form) INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form)
LINK_DIRECTORIES(${CMake_BINARY_DIR}/Source/CursesDialog/form)
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH}) INCLUDE_DIRECTORIES(${CURSES_INCLUDE_PATH})
LINK_LIBRARIES(${CURSES_LIBRARY})
IF(CURSES_EXTRA_LIBRARY)
LINK_LIBRARIES(${CURSES_EXTRA_LIBRARY})
ENDIF(CURSES_EXTRA_LIBRARY)
LINK_LIBRARIES(cmForm)
ADD_EXECUTABLE(ccmake CURSES_SRCS) ADD_EXECUTABLE(ccmake CURSES_SRCS)
TARGET_LINK_LIBRARIES(ccmake cmForm)
TARGET_LINK_LIBRARIES(ccmake ${CURSES_LIBRARY})
IF(CURSES_EXTRA_LIBRARY)
TARGET_LINK_LIBRARIES(ccmake ${CURSES_EXTRA_LIBRARY})
ENDIF(CURSES_EXTRA_LIBRARY)
INSTALL_TARGETS(/bin ccmake) INSTALL_TARGETS(/bin ccmake)