Warning, /kdevelop/kdevelop/plugins/qmakemanager/parser/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include_directories( 0002 ${KDEVPGQT_INCLUDE_DIR} 0003 ${CMAKE_CURRENT_BINARY_DIR}/.. 0004 ) 0005 set(kdevqmakeparser_SRCS 0006 qmakeast.cpp 0007 qmakedriver.cpp 0008 qmakedebugvisitor.cpp 0009 buildastvisitor.cpp 0010 qmakelexer.cpp 0011 qmakeastvisitor.cpp 0012 qmakeastdefaultvisitor.cpp 0013 ) 0014 0015 if(NOT KDevelop-PG-Qt_VERSION VERSION_LESS "2.2.1") 0016 set(_kdevpgqt_generate_extra_args ENFORCE_COMPATIBLE_ERROR_AWARE_CODE) 0017 endif() 0018 kdevpgqt_generate(parser_GEN_SRCS qmake NAMESPACE QMake DUMP_INFO ${_kdevpgqt_generate_extra_args} 0019 "${CMAKE_CURRENT_SOURCE_DIR}/qmake.g" 0020 "${CMAKE_CURRENT_SOURCE_DIR}/qmakelexer.h") 0021 0022 if(BUILD_TESTING) 0023 add_subdirectory(tests) 0024 endif() 0025 0026 option(BUILD_qmake_parser "Build the qmake-parser debugging tool" OFF) 0027 if(BUILD_qmake_parser) 0028 add_executable(qmake-parser ${qmakecommon_LOG_SRCS} main.cpp) 0029 target_link_libraries(qmake-parser kdevqmakeparser KF5::CoreAddons Qt5::Core) 0030 install(TARGETS qmake-parser ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0031 endif() 0032 0033 add_library(kdevqmakeparser STATIC ${kdevqmakeparser_SRCS} ${parser_GEN_SRCS}) 0034 generate_export_header(kdevqmakeparser BASE_NAME parser EXPORT_MACRO_NAME KDEVQMAKEPARSER_EXPORT) 0035 target_link_libraries(kdevqmakeparser 0036 PUBLIC 0037 KDev::Util 0038 PRIVATE 0039 KF5::CoreAddons 0040 KF5::KIOCore 0041 ) 0042 target_include_directories(kdevqmakeparser PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) 0043 # for proper include stack reports with gcc when working on the parser: 0044 # remove ENFORCE_COMPATIBLE_ERROR_AWARE_CODE from kdevpgqt_generate 0045 # uncomment next line: 0046 # add_target_compile_flag_if_supported(kdevqmakeparser PRIVATE "-Wno-pedantic")