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