mirror of
https://github.com/QuasarApp/zip.git
synced 2025-05-17 13:59:33 +00:00
Use target_include_directories to help dependents find the zip.h file (#45)
* use target_include_directories to tell dependents about the include path * ignore CMake-generated files for Visual Studio
This commit is contained in:
parent
cb23feb8b7
commit
894f63002d
10
.gitignore
vendored
10
.gitignore
vendored
@ -44,3 +44,13 @@ CMakeScripts
|
|||||||
# Xcode
|
# Xcode
|
||||||
*.build
|
*.build
|
||||||
*.xcodeproj
|
*.xcodeproj
|
||||||
|
zip.sln
|
||||||
|
zip.vcxproj.filters
|
||||||
|
zip.vcxproj
|
||||||
|
ALL_BUILD.vcxproj.filters
|
||||||
|
ALL_BUILD.vcxproj
|
||||||
|
CMakeFiles/
|
||||||
|
zip.dir/
|
||||||
|
test/test.exe.vcxproj.filters
|
||||||
|
test/test.exe.vcxproj
|
||||||
|
test/test.exe.dir/
|
||||||
|
@ -12,6 +12,7 @@ endif (MSVC)
|
|||||||
# zip
|
# zip
|
||||||
set(SRC src/miniz.h src/zip.h src/zip.c)
|
set(SRC src/miniz.h src/zip.h src/zip.c)
|
||||||
add_library(${PROJECT_NAME} ${SRC})
|
add_library(${PROJECT_NAME} ${SRC})
|
||||||
|
target_include_directories(${PROJECT_NAME} INTERFACE src)
|
||||||
|
|
||||||
# test
|
# test
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user