# By default pigz will be linked against the system zlib and
# pthread libraries if installed.
+# For compilation on Windows download and use shim:
+# https://github.com/zlib-ng/pigzbench/tree/master/pigz/win
+
# Optional Variables
# WITH_CODE_COVERAGE - Enable code coverage reporting
# WITH_THREADS - Enable threading support
add_executable(${PROJECT_NAME} ${PIGZ_SRCS} ${PIGZ_HDRS})
add_definitions(-DNOZOPFLI)
+if(WIN32)
+ target_include_directories(${PROJECT_NAME} PRIVATE win)
+endif()
# Find and link against pthreads or pthreads4w
if(WITH_THREADS)
add_subdirectory(${PTHREADS4W_ROOT} ${PTHREADS4W_ROOT} EXCLUDE_FROM_ALL)
target_link_libraries(${PROJECT_NAME} pthreadVC3)
- target_include_directories(${PROJECT_NAME} PRIVATE win ${PTHREADS4W_ROOT})
+ target_include_directories(${PROJECT_NAME} PRIVATE ${PTHREADS4W_ROOT})
else()
message(WARNING "Missing pthreads4w root directory")
set(WITH_THREADS OFF)