Warning, /education/kalgebra/calgebra/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(CheckFunctionExists) 0002 include(CMakePushCheckState) 0003 0004 include_directories(${READLINE_INCLUDE_DIR} ${CURSES_INCLUDE_DIR}) 0005 0006 # check if we have recent version of Readline 0007 cmake_push_check_state(RESET) 0008 set(CMAKE_REQUIRED_LIBRARIES ${READLINE_LIBRARY} ${CURSES_LIBRARIES}) 0009 check_function_exists(free_history_entry HAVE_FREE_HISTORY_ENTRY) 0010 cmake_pop_check_state() 0011 if(HAVE_FREE_HISTORY_ENTRY) 0012 add_definitions(-DHAVE_FREE_HISTORY_ENTRY) 0013 endif() 0014 0015 add_executable(calgebra main.cpp) 0016 target_link_libraries(calgebra Qt::Core ${READLINE_LIBRARY} KF5::Analitza) 0017 0018 install(TARGETS calgebra ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0019