aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-03-18 16:18:58 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-03-18 16:18:58 -0500
commit6ab104ead78efc2955cc8cf65e037f947ae0de47 (patch)
tree312a38062e19459d42f4ed046f8f6da22aced637 /CMakeLists.txt
parentfd8983a7ffe9e6825563243d01469898d1d30b45 (diff)
parent20579049fa23c43f2e9a87ada923d71368d59e48 (diff)
downloadmonzero-gui-6ab104ead78efc2955cc8cf65e037f947ae0de47.tar.gz
monzero-gui-6ab104ead78efc2955cc8cf65e037f947ae0de47.tar.xz
monzero-gui-6ab104ead78efc2955cc8cf65e037f947ae0de47.zip
Merge pull request #3470
2057904 cmake: remove unneeded monero_gui_add_library() (selsta)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt26
1 files changed, 0 insertions, 26 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4452d80e..40f0c496 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,36 +76,10 @@ endif()
include(CMakePackageConfigHelpers)
-# force version update
-function (monero_gui_add_library_with_deps)
- cmake_parse_arguments(MONERO_ADD_LIBRARY "" "NAME" "DEPENDS;SOURCES" ${ARGN})
- source_group("${MONERO_ADD_LIBRARY_NAME}" FILES ${MONERO_ADD_LIBRARY_SOURCES})
-
- # Define a ("virtual") object library and an actual library that links those
- # objects together. The virtual libraries can be arbitrarily combined to link
- # any subset of objects into one library archive. This is used for releasing
- # libwallet, which combines multiple components.
- set(objlib obj_${MONERO_ADD_LIBRARY_NAME})
- add_library(${objlib} OBJECT ${MONERO_ADD_LIBRARY_SOURCES})
- add_library("${MONERO_ADD_LIBRARY_NAME}" $<TARGET_OBJECTS:${objlib}>)
- if (MONERO_ADD_LIBRARY_DEPENDS)
- add_dependencies(${objlib} ${MONERO_ADD_LIBRARY_DEPENDS})
- endif()
- set_property(TARGET "${MONERO_ADD_LIBRARY_NAME}" PROPERTY FOLDER "libs")
- target_compile_definitions(${objlib}
- PRIVATE $<TARGET_PROPERTY:${MONERO_ADD_LIBRARY_NAME},INTERFACE_COMPILE_DEFINITIONS>)
-endfunction ()
-
-function (monero_gui_add_library name)
- monero_gui_add_library_with_deps(NAME "${name}" SOURCES ${ARGN})
-endfunction()
-
include_directories(${EASYLOGGING_INCLUDE})
link_directories(${EASYLOGGING_LIBRARY_DIRS})
-
include(VersionGui)
-monero_gui_add_library(gui_version SOURCES version.js DEPENDS genversiongui)
message(STATUS "${CMAKE_MODULE_PATH}")