cmake/Source/CursesDialog/CMakeLists.txt

39 lines
1.3 KiB
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2013-03-16 19:13:01 +02:00
set( CURSES_SRCS
2018-04-23 21:13:27 +02:00
CursesDialog/cmCursesOptionsWidget.cxx
CursesDialog/cmCursesBoolWidget.cxx
CursesDialog/cmCursesCacheEntryComposite.cxx
CursesDialog/cmCursesDummyWidget.cxx
CursesDialog/cmCursesFilePathWidget.cxx
CursesDialog/cmCursesForm.cxx
CursesDialog/cmCursesLabelWidget.cxx
CursesDialog/cmCursesLongMessageForm.cxx
CursesDialog/cmCursesMainForm.cxx
CursesDialog/cmCursesPathWidget.cxx
CursesDialog/cmCursesStringWidget.cxx
CursesDialog/cmCursesWidget.cxx
CursesDialog/ccmake.cxx
)
2013-03-16 19:13:01 +02:00
include_directories(${CURSES_INCLUDE_PATH})
2013-03-16 19:13:01 +02:00
add_executable(ccmake ${CURSES_SRCS} )
target_link_libraries(ccmake CMakeLib)
2015-04-27 22:25:09 +02:00
if(CMAKE_USE_SYSTEM_FORM)
target_link_libraries(ccmake
${CURSES_FORM_LIBRARY}
${CURSES_LIBRARY}
)
if(CURSES_EXTRA_LIBRARY)
target_link_libraries(ccmake ${CURSES_EXTRA_LIBRARY})
endif()
else()
target_link_libraries(ccmake cmForm)
endif()
2015-11-17 17:22:37 +01:00
CMake_OPTIONAL_COMPONENT(ccmake)
2016-10-30 18:24:19 +01:00
install(TARGETS ccmake DESTINATION ${CMAKE_BIN_DIR} ${COMPONENT})