PackBinary/CMakeLists.txt

25 lines
610 B
CMake

cmake_minimum_required(VERSION 3.16)
project(PackBinary LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (MSVC)
add_compile_options(/source-charset:utf-8)
endif()
message(STATUS "System: ${CMAKE_SYSTEM_NAME}")
message(STATUS "Compiler CXX ID: ${CMAKE_CXX_COMPILER_ID}")
set(SOURCES_FILE
main.cpp cmd_parse.h
cmd_parse.cpp public.hpp
pack.h pack.cpp
install.h install.cpp
logic.h logic.cpp
)
find_package(Poco REQUIRED Foundation Util)
add_executable(PackBinary ${SOURCES_FILE})
target_link_libraries(PackBinary PRIVATE Poco::Foundation Poco::Util)