CMakeLists.txt 353 B

123456789101112131415161718
  1. set(MODULE "pb2tarscpp")
  2. set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin")
  3. if(WIN32)
  4. add_definitions(-DPROTOBUF_USE_DLLS)
  5. endif()
  6. aux_source_directory(. DIR_SRCS)
  7. add_executable(pb2tarscpp ${DIR_SRCS})
  8. target_link_libraries(pb2tarscpp ${LIB_PROTOBUF} ${LIB_PROTOC})
  9. install(TARGETS "pb2tarscpp"
  10. RUNTIME DESTINATION tools)