CMakeLists.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #=============================================================================
  2. # CMake - Cross Platform Makefile Generator
  3. # Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. #
  5. # Distributed under the OSI-approved BSD License (the "License");
  6. # see accompanying file Copyright.txt for details.
  7. #
  8. # This software is distributed WITHOUT ANY WARRANTY; without even the
  9. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. # See the License for more information.
  11. #=============================================================================
  12. set( CURSES_SRCS
  13. CursesDialog/cmCursesOptionsWidget
  14. CursesDialog/cmCursesBoolWidget
  15. CursesDialog/cmCursesCacheEntryComposite
  16. CursesDialog/cmCursesDummyWidget
  17. CursesDialog/cmCursesFilePathWidget
  18. CursesDialog/cmCursesForm
  19. CursesDialog/cmCursesLabelWidget
  20. CursesDialog/cmCursesLongMessageForm
  21. CursesDialog/cmCursesMainForm
  22. CursesDialog/cmCursesPathWidget
  23. CursesDialog/cmCursesStringWidget
  24. CursesDialog/cmCursesWidget
  25. CursesDialog/ccmake
  26. )
  27. if( NOT CMAKE_USE_SYSTEM_FORM )
  28. include_directories(${CMake_SOURCE_DIR}/Source/CursesDialog/form
  29. ${CMake_BINARY_DIR}/Source/CursesDialog/form)
  30. endif()
  31. include_directories(${CURSES_INCLUDE_PATH})
  32. add_executable(ccmake ${CURSES_SRCS} )
  33. target_link_libraries(ccmake CMakeLib)
  34. if(CMAKE_USE_SYSTEM_FORM)
  35. target_link_libraries(ccmake
  36. ${CURSES_FORM_LIBRARY}
  37. ${CURSES_LIBRARY}
  38. )
  39. if(CURSES_EXTRA_LIBRARY)
  40. target_link_libraries(ccmake ${CURSES_EXTRA_LIBRARY})
  41. endif()
  42. else()
  43. target_link_libraries(ccmake cmForm)
  44. endif()
  45. install(TARGETS ccmake DESTINATION bin)