mirror of
https://github.com/QuasarApp/zip.git
synced 2025-05-06 09:09:33 +00:00
Use project-local CMake variables instead of top-level CMake variables (#43)
This commit is contained in:
parent
db1221dbca
commit
9611ec3a7e
8
.gitignore
vendored
8
.gitignore
vendored
@ -36,3 +36,11 @@
|
||||
# Temporary
|
||||
*.swp
|
||||
.DS_Store
|
||||
|
||||
# CMake
|
||||
CMakeScripts
|
||||
*.cmake
|
||||
|
||||
# Xcode
|
||||
*.build
|
||||
*.xcodeproj
|
||||
|
@ -11,12 +11,12 @@ endif (MSVC)
|
||||
|
||||
# zip
|
||||
set(SRC src/miniz.h src/zip.h src/zip.c)
|
||||
add_library(${CMAKE_PROJECT_NAME} ${SRC})
|
||||
add_library(${PROJECT_NAME} ${SRC})
|
||||
|
||||
# test
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||
find_package(Sanitizers)
|
||||
add_sanitizers(${CMAKE_PROJECT_NAME} test.exe)
|
||||
add_sanitizers(${PROJECT_NAME} test.exe)
|
||||
|
Loading…
x
Reference in New Issue
Block a user