From 671d070838c8bc964e408355b8a3fa0c7644fc1c Mon Sep 17 00:00:00 2001 From: aryan Date: Thu, 9 Jun 2022 04:03:49 -0700 Subject: [PATCH] Started cmake Looks like an enormous job. The Domain specific language in wxWidgets/CMakeLists.txt is a huge pile of code in an completely undocumented language that was never intended to be a turing complete language. Need to fix options.cmake, and possibly main.cmake Which overrule our build options for their own. --- CMakeLists.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..2c9a780 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.22) +project(wallet) +# add_subdirectory(libsodium) +# add_subdirectory(mpir) +add_subdirectory(wxWidgets) +# include( ${libsodium_USE_FILE} ) +# include( ${mpir_USE_FILE} ) +# include( ${wxWidgets_USE_FILE} ) +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED True) +# Whenever this glob's value changes, cmake will rerun and update the build with the +# new/removed files. +file(GLOB walletcpp CONFIGURE_DEPENDS "*.cpp" ) +file(GLOB walletc CONFIGURE_DEPENDS "*.c" ) +file(GLOB walletmanifest CONFIGURE_DEPENDS "*.manifest" ) +file(GLOB walletmanifest CONFIGURE_DEPENDS "*.rc" ) +add_executable(${PROJECT_NAME} + ${walletcpp} + ${walletc} + ${walletmanifest} + ${walletrc} +) +target_link_libraries(${PROJECT_NAME} + ${wxWidgets_LIBRARIES} + ${libsodium_LIBRARIES} + ${mpir_LIBRARIES} +)