blob: 85241423b8c34aa864bed0c3371ef92e8eb86aa6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# oldstable as of May '26
# Plus, I'm pretty sure it's required for things like CONFIGURE_DEPENDS and
# CMAKE_MSVC_RUNTIME_LIBRARY and stuff.
cmake_minimum_required(VERSION 3.25)
project(winapi_common CXX)
enable_testing()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
if (MSVC)
add_compile_options(/MP /W4)
else()
add_compile_options(-Wall -Wextra)
endif()
add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
add_subdirectory(3rdparty/winapi/utf8 EXCLUDE_FROM_ALL)
add_subdirectory(src)
if(WINAPI_COMMON_TESTS)
add_subdirectory(test)
endif()
install(FILES LICENSE.txt DESTINATION share)
find_package(Doxygen)
if(DOXYGEN_FOUND)
set(DOXYGEN_INCLUDE_GRAPH NO)
set(DOXYGEN_INCLUDED_BY_GRAPH NO)
set(DOXYGEN_SHOW_INCLUDE_FILES NO)
set(DOXYGEN_SORT_MEMBER_DOCS NO)
set(DOXYGEN_SOURCE_BROWSER YES)
set(DOXYGEN_USE_MDFILE_AS_MAINPAGE README.md)
doxygen_add_docs(winapi_common_docs
README.md
${winapi_common_include}
${winapi_common_src})
endif()
|