CMakeLists.txt 291 B

12345678
  1. cmake_minimum_required(VERSION 2.8)
  2. project(qtprotobuf)
  3. find_package(Protobuf)
  4. message("Protobuf libraries"${Protobuf_LIBRARIES})
  5. add_executable(${PROJECT_NAME} "src/generator/main.cpp" "src/generator/generator.cpp")
  6. target_link_libraries(${PROJECT_NAME} ${Protobuf_LIBRARIES} "-lprotoc")