Warning, /kdevelop/kdevelop-pg-qt/examples/fact/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) 0002 0003 find_package(KDevelop-PG-Qt) 0004 0005 kdevpgqt_generate(_kdevpgList fact NAMESPACE fact DEBUG_VISITOR 0006 "${CMAKE_CURRENT_SOURCE_DIR}/fact.g" 0007 "${CMAKE_CURRENT_SOURCE_DIR}/factlexer.h" 0008 ) 0009 0010 set( parser_SRCS 0011 ${_kdevpgList} 0012 ) 0013 0014 SET(assembled_parser_srcs 0015 factlexer.cpp 0016 ) 0017 0018 0019 # add definitions, compiler switches, etc. 0020 ADD_DEFINITIONS(-Wall -O2) 0021 0022 # tell CMake to generate the executable 0023 ADD_EXECUTABLE(fact-parser ${assembled_parser_srcs} ${parser_SRCS} main.cpp) 0024 0025 target_link_libraries(fact-parser Qt${QT_MAJOR_VERSION}::Core) 0026