A few modifications.
This commit is contained in:
parent
e842755275
commit
735fd5c0ce
@ -35,8 +35,7 @@ find_package(PkgConfig REQUIRED)
|
|||||||
pkg_check_modules(OPENDHT REQUIRED opendht>=1.4.0)
|
pkg_check_modules(OPENDHT REQUIRED opendht>=1.4.0)
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
"include/"
|
"include/")
|
||||||
SYSTEM ${OPENDHT_INCLUDE_DIRS})
|
|
||||||
|
|
||||||
# Define files
|
# Define files
|
||||||
set(SRCS
|
set(SRCS
|
||||||
@ -44,6 +43,7 @@ set(SRCS
|
|||||||
|
|
||||||
set(HDRS
|
set(HDRS
|
||||||
"include/neocomm/channel.hpp"
|
"include/neocomm/channel.hpp"
|
||||||
|
"include/neocomm/neocomm.hpp"
|
||||||
"include/neocomm/node.hpp")
|
"include/neocomm/node.hpp")
|
||||||
|
|
||||||
# Define C++ compiler flags
|
# 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_RELWITHDEBINFO "-g -O3")
|
||||||
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
|
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
|
||||||
|
|
||||||
add_definitions(-DVERSION="${TARGET_VERSION}")
|
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "relwithdebinfo")
|
if(CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "relwithdebinfo")
|
||||||
add_definitions(-DDEBUG)
|
add_definitions(-DDEBUG)
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user