How to build google protobuf environment with cmake on windows?
I am following the instructions from: https://github.com/google/protobuf/tree/master/cmake cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../../../install/protobuf ../.. nmake install In my program's CMakeLists.txt i use: find_package(Protobuf REQUIRED) But it tells me: -- Could NOT find Protobuf (missing: Protobuf_LIBRARIES Protobuf_INCLUDE_DIR) I think I should set set the environment variable. Is there a effective way to do this? in protobuf-master/cmake/install.cmake i can see this: configure_file(protobuf-config.cmake.in ${CMAKE_INSTALL_CMAKEDIR}/protobuf