forked from nimbuscontrols/EIPScanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (25 loc) · 818 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.5)
set(EIPSCANNER_MAJOR_VERSION 1)
set(EIPSCANNER_MINOR_VERSION 1)
set(EIPSCANNER_PATCH_VERSION 0)
set(EIPSCANNER_FULL_VERSION ${EIPSCANNER_MAJOR_VERSION}.${EIPSCANNER_MINOR_VERSION}.${EIPSCANNER_PATCH_VERSION})
project(EIPScanner VERSION ${EIPSCANNER_FULL_VERSION})
set(CMAKE_CXX_STANDARD 20)
option(ENABLE_VENDOR_SRC "Enable vendor source" ON)
option(TEST_ENABLED "Enable unit test" OFF)
option(EXAMPLE_ENABLED "Build examples" OFF)
if (WIN32)
# Needed on MinGW with GCC 10 or lower
add_compile_definitions(_WIN32_WINNT=0x0600)
# Prevent std::numeric_limits::max collision
if (MSVC)
add_compile_definitions(NOMINMAX)
endif()
endif()
add_subdirectory(src)
if (EXAMPLE_ENABLED)
add_subdirectory(examples)
endif()
if (TEST_ENABLED)
add_subdirectory(test)
endif()