2015-08-11 13:37:36 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
hhpcomp.cpp
|
|
|
|
hhp_reader.cpp
|
|
|
|
utils.cpp
|
|
|
|
chmc/chmc.c
|
|
|
|
chmc/err.c
|
|
|
|
lzx_compress/lz_nonslide.c
|
2015-08-11 20:19:58 +00:00
|
|
|
lzx_compress/lzx_layer.c
|
2019-04-27 14:19:26 +00:00
|
|
|
../port/mkstemps.c)
|
2015-08-11 13:37:36 +00:00
|
|
|
|
|
|
|
# used by lzx_compress
|
|
|
|
add_definitions(-DNONSLIDE)
|
|
|
|
|
|
|
|
add_executable(hhpcomp ${SOURCE})
|
2015-08-11 20:19:58 +00:00
|
|
|
target_link_libraries(hhpcomp)
|
2019-04-15 11:29:33 +00:00
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
# Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(hhpcomp PRIVATE "/wd4244")
|
2019-04-15 11:29:33 +00:00
|
|
|
endif()
|