Merge pull request #14 from Xeverous/patch-1

correct cmake usage example in README.md
This commit is contained in:
2022-11-27 14:21:24 +07:00
committed by GitHub
3 changed files with 2 additions and 4 deletions

View File

@@ -10,8 +10,6 @@ jobs:
matrix:
config:
# https://github.com/actions/virtual-environments/tree/main/images/win
- { os: "windows-2016", vs: "Visual Studio 2017", arch: "x86" }
- { os: "windows-2016", vs: "Visual Studio 2017", arch: "x64" }
- { os: "windows-2019", vs: "Visual Studio 2019", arch: "x86" }
- { os: "windows-2019", vs: "Visual Studio 2019", arch: "x64" }
name: "${{matrix.config.vs}} ${{matrix.config.arch}}"

View File

@@ -56,7 +56,7 @@ Also, you can add the root repository directory to your [cmake](https://cmake.or
```cmake
add_subdirectory(external/enum.hpp)
target_link_libraries(your_project_target enum.hpp)
target_link_libraries(your_project_target PUBLIC enum.hpp)
```
## Examples

View File

@@ -18,7 +18,7 @@ endif()
file(GLOB_RECURSE UNTESTS_SOURCES "*.cpp" "*.hpp")
add_executable(${PROJECT_NAME} ${UNTESTS_SOURCES})
target_link_libraries(${PROJECT_NAME} enum.hpp)
target_link_libraries(${PROJECT_NAME} PUBLIC enum.hpp)
target_compile_options(${PROJECT_NAME}
PRIVATE