Small CMakeFiles changes
This commit is contained in:
parent
eacb2eb59b
commit
df91106a7f
|
@ -8,8 +8,7 @@ project(
|
|||
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(UIRC_VERSION "${PROJECT_VERSION}")
|
||||
add_compile_definitions(UIRC_VERSION="${UIRC_VERSION}")
|
||||
add_compile_definitions(UIRC_VERSION="${PROJECT_VERSION}")
|
||||
|
||||
OPTION(BUILD_IRCV3 "Build IRCv3 components" OFF)
|
||||
OPTION(BUILD_VALIDATORS "Build message validators" OFF)
|
||||
|
@ -46,14 +45,12 @@ set(UIRC_HEADERS
|
|||
include/validator.h
|
||||
)
|
||||
|
||||
# Libraries used
|
||||
# Libraries
|
||||
find_library(LLIST_PATH NAMES llist REQUIRED)
|
||||
find_library(STRINGEXT_PATH NAMES stringext REQUIRED)
|
||||
set(UIRC_LIBS ${STRINGEXT_PATH} ${LLIST_PATH})
|
||||
|
||||
#
|
||||
# Features
|
||||
#
|
||||
if (BUILD_IRCV3)
|
||||
message(STATUS "IRCv3 capabilities enabled")
|
||||
add_compile_definitions(UIRC_FEATURE_IRCV3)
|
||||
|
|
Reference in New Issue