2015-09-02 18:53:24 +00:00
|
|
|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
2017-11-14 04:51:39 +00:00
|
|
|
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
|
2016-03-04 23:04:30 +00:00
|
|
|
project(nod)
|
2017-11-13 06:18:53 +00:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
2017-06-18 02:52:39 +00:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2015-07-22 19:01:28 +00:00
|
|
|
endif()
|
|
|
|
|
2017-07-09 05:25:19 +00:00
|
|
|
if (MSVC)
|
|
|
|
# Shaddup MSVC
|
|
|
|
add_definitions(-DUNICODE=1 -D_UNICODE=1 -D__SSE__=1 -D_CRT_SECURE_NO_WARNINGS=1 -DD_SCL_SECURE_NO_WARNINGS=1
|
|
|
|
/IGNORE:4221 /wd4018 /wd4800 /wd4005 /wd4311 /wd4267 /wd4244 /wd4200 /wd4305 /wd4067 /wd4146 ${VS_DEFINES})
|
|
|
|
endif()
|
|
|
|
|
2016-03-04 23:04:30 +00:00
|
|
|
if (NOT TARGET logvisor)
|
|
|
|
add_subdirectory(logvisor)
|
|
|
|
set(LOGVISOR_INCLUDE_DIR logvisor/include)
|
2015-07-07 03:22:19 +00:00
|
|
|
endif()
|
|
|
|
|
2016-03-04 23:04:30 +00:00
|
|
|
include_directories(include ${LOGVISOR_INCLUDE_DIR})
|
|
|
|
file(GLOB NOD_HEADERS include/nod/*.h*)
|
2015-07-07 03:22:19 +00:00
|
|
|
|
|
|
|
add_subdirectory(lib)
|
|
|
|
add_subdirectory(driver)
|
2016-03-04 23:04:30 +00:00
|
|
|
install(DIRECTORY include/nod DESTINATION include/nod)
|