diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-05 03:00:33 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-05 03:00:33 (GMT) |
commit | 84f6fdd69ff02dda5ff96344cde8c5df5e1be0e2 (patch) | |
tree | 5ec28938cb2574641538279b430081f7b2692f2c /Source/CursesDialog | |
parent | 1362bb41c82f58f7ea8049d396d25584fb72d8f9 (diff) | |
download | CMake-84f6fdd69ff02dda5ff96344cde8c5df5e1be0e2.zip CMake-84f6fdd69ff02dda5ff96344cde8c5df5e1be0e2.tar.gz CMake-84f6fdd69ff02dda5ff96344cde8c5df5e1be0e2.tar.bz2 |
ENH: use target link libraries and add the link directory for cmform
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/CMakeLists.txt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/CursesDialog/CMakeLists.txt b/Source/CursesDialog/CMakeLists.txt index 8455ce0..5824674 100644 --- a/Source/CursesDialog/CMakeLists.txt +++ b/Source/CursesDialog/CMakeLists.txt @@ -15,16 +15,17 @@ SOURCE_FILES( CURSES_SRCS ) INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source/CursesDialog/form) +LINK_DIRECTORIES(${CMake_BINARY_DIR}/Source/CursesDialog/form) 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) +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)
\ No newline at end of file |