1 2list(APPEND SOURCE 3 hhpcomp.cpp 4 hhp_reader.cpp 5 utils.cpp 6 chmc/chmc.c 7 chmc/err.c 8 lzx_compress/lz_nonslide.c 9 lzx_compress/lzx_layer.c 10 ../port/mkstemps.c) 11 12# used by lzx_compress 13add_definitions(-DNONSLIDE) 14 15add_executable(hhpcomp ${SOURCE}) 16target_link_libraries(hhpcomp) 17 18if(MSVC) 19 # Disable warning "'x': unreferenced local variable" 20 target_compile_options(hhpcomp PRIVATE "/wd4101") 21 22 # Disable warning "'=': conversion from 'a' to 'b', possible loss of data" 23 target_compile_options(hhpcomp PRIVATE "/wd4244") 24endif() 25