Allow build without encryptsave library + formatting cleanup.
This commit is contained in:
parent
3b69de11cb
commit
801d863626
2 changed files with 162 additions and 146 deletions
|
@ -26,7 +26,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
|||
find_package(WeeChat REQUIRED)
|
||||
find_package(Tox REQUIRED
|
||||
COMPONENTS CORE
|
||||
OPTIONAL_COMPONENTS AV)
|
||||
OPTIONAL_COMPONENTS AV ENCRYPTSAVE)
|
||||
|
||||
set(PLUGIN_PATH "lib/weechat/plugins" CACHE PATH
|
||||
"Path to install the plugin binary to.")
|
||||
|
@ -60,6 +60,10 @@ if(Tox_AV_FOUND)
|
|||
add_definitions(-DTOXAV_ENABLED)
|
||||
endif()
|
||||
|
||||
if(Tox_ENCRYPTSAVE_FOUND)
|
||||
add_definitions(-DTOXENCRYPTSAVE_ENABLED)
|
||||
endif()
|
||||
|
||||
# remove lib prefix (libtox.so -> tox.so)
|
||||
set_target_properties(tox PROPERTIES PREFIX "")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue