2015-07-07 03:22:19 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(NODLib)
|
|
|
|
|
2015-08-31 03:37:22 +00:00
|
|
|
if(NOT MSVC)
|
2015-07-22 19:01:28 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
endif()
|
|
|
|
|
2015-07-07 03:22:19 +00:00
|
|
|
if (NOT TARGET LogVisor)
|
|
|
|
add_subdirectory(LogVisor)
|
2015-07-20 02:51:49 +00:00
|
|
|
set(LOG_VISOR_INCLUDE_DIR LogVisor/include)
|
2015-07-07 03:22:19 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(include ${LOG_VISOR_INCLUDE_DIR})
|
|
|
|
file(GLOB NOD_HEADERS include/NOD/*.hpp)
|
|
|
|
|
|
|
|
add_subdirectory(lib)
|
|
|
|
add_subdirectory(driver)
|
|
|
|
install(DIRECTORY include/NOD DESTINATION include/NOD)
|