forked from cheng/wallet
671d070838
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.
28 lines
829 B
CMake
28 lines
829 B
CMake
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}
|
|
)
|