A few modifications.

This commit is contained in:
Nicolás Ortega Froysa 2018-09-01 19:54:59 +02:00
parent e842755275
commit 735fd5c0ce
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -35,8 +35,7 @@ find_package(PkgConfig REQUIRED)
pkg_check_modules(OPENDHT REQUIRED opendht>=1.4.0)
include_directories(
"include/"
SYSTEM ${OPENDHT_INCLUDE_DIRS})
"include/")
# Define files
set(SRCS
@ -44,6 +43,7 @@ set(SRCS
set(HDRS
"include/neocomm/channel.hpp"
"include/neocomm/neocomm.hpp"
"include/neocomm/node.hpp")
# Define C++ compiler flags
@ -53,8 +53,6 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O3")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
add_definitions(-DVERSION="${TARGET_VERSION}")
if(CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "relwithdebinfo")
add_definitions(-DDEBUG)
else()