forked from cheng/wallet
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.
This commit is contained in:
parent
b56de2c59c
commit
671d070838
27
CMakeLists.txt
Normal file
27
CMakeLists.txt
Normal file
@ -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}
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user