mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
7e069ccdb2
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
24 lines
565 B
CMake
24 lines
565 B
CMake
|
|
list(APPEND SOURCE
|
|
hhpcomp.cpp
|
|
hhp_reader.cpp
|
|
utils.cpp
|
|
chmc/chmc.c
|
|
chmc/err.c
|
|
lzx_compress/lz_nonslide.c
|
|
lzx_compress/lzx_layer.c
|
|
../port/mkstemps.c)
|
|
|
|
# used by lzx_compress
|
|
add_definitions(-DNONSLIDE)
|
|
|
|
add_executable(hhpcomp ${SOURCE})
|
|
target_link_libraries(hhpcomp)
|
|
|
|
if(MSVC)
|
|
# Disable warning "'x': unreferenced local variable"
|
|
target_compile_options(hhpcomp PRIVATE "/wd4101")
|
|
|
|
# Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
|
|
target_compile_options(hhpcomp PRIVATE "/wd4244")
|
|
endif()
|