mirror of
https://github.com/BlackMATov/enum.hpp.git
synced 2025-12-13 06:59:45 +07:00
Merge pull request #14 from Xeverous/patch-1
correct cmake usage example in README.md
This commit is contained in:
2
.github/workflows/windows.yml
vendored
2
.github/workflows/windows.yml
vendored
@@ -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}}"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user