gsplus/CMakeLists.txt

23 lines
492 B
CMake
Raw Normal View History

2019-01-03 00:53:34 +00:00
cmake_minimum_required(VERSION 3.1)
project(gsplus VERSION 0.14)
if(CYGWIN OR MSYS)
set(WIN32 1)
add_definitions(-DWIN32 -D_WIN32)
endif()
# msys/cygwin/mingw32 add dirent.h, etc.
# Visual C++ does not.
if(MSVC)
include_directories(include/msvc)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
2019-01-04 22:53:16 +00:00
add_compile_options(/wd4996)
2019-01-03 00:53:34 +00:00
endif()
# add pcap headers for win32. assume os/x, linux, etc, already have them.
if(WIN32)
include_directories(include/npcap)
endif()
add_subdirectory(src bin)