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} +)