blob: 9fc467e6f01fe11566760d40a277b2e4d05c0236 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# oldstable as of May '26.
# Plus, I'm pretty sure it's required for things like CONFIGURE_DEPENDS.
cmake_minimum_required(VERSION 3.25)
project(privilege_check CXX)
if(MSVC)
add_compile_options(/MP /W4 /WX)
# Allow GetVersionEx, can't be bothered to upgrade.
add_compile_options(/wd4996)
else()
add_compile_options(-Wall -Wextra -pedantic -Werror)
endif()
add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
add_subdirectory(src)
install(FILES README.md LICENSE.txt DESTINATION share)
|