20 lines
646 B
CMake
20 lines
646 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
project(process_monitor VERSION 0.1.0 LANGUAGES CXX)
|
|
|
|
add_executable(process-monitor
|
|
src/main.cpp
|
|
)
|
|
|
|
target_compile_features(process-monitor PRIVATE cxx_std_17)
|
|
target_compile_definitions(process-monitor PRIVATE UNICODE _UNICODE WIN32_LEAN_AND_MEAN NOMINMAX)
|
|
target_link_libraries(process-monitor PRIVATE winhttp)
|
|
|
|
if(MSVC)
|
|
set_property(TARGET process-monitor PROPERTY
|
|
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
|
target_compile_options(process-monitor PRIVATE /W4 /permissive-)
|
|
else()
|
|
target_compile_options(process-monitor PRIVATE -Wall -Wextra -Wpedantic)
|
|
endif()
|