mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-26 12:41:01 +08:00
9fd8df92ca
The steps to add this functionality are from the cmake tutorial: https://cmake.org/cmake/help/latest/guide/tutorial/index.html The include directories being set on the targets is necessary for dependent targets. There is some redundancy with the INCLUDE_DIRECTORIES calls alreday present, but I left it alone to make the PR smaller and more approachable. The project currently uses mixed cases in functions. This uses lowercase on calls I touched, as this is what CMake documentation uses and seems to be the preferred way. I also started wrapping long lines, as some of the lines I touched were over 170 characters. I tested this on both Mac OS 10.15 Catalina and CentOS 7 (with devtoolset-7) with CMake 3.10.3. Will work on tests in CI next.
5 lines
47 B
Plaintext
5 lines
47 B
Plaintext
*
|
|
!.gitignore
|
|
!CMakeLists.txt
|
|
!Config.cmake.in
|