mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
bump wxWidgets to 3.3.1
This commit is contained in:
+2
-14
@@ -6,7 +6,7 @@ add_definitions(-DUNOFFICIAL_BUILD)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
find_package(wxWidgets 3 REQUIRED COMPONENTS core base net html)
|
||||
find_package(wxWidgets 3.3.1 CONFIG REQUIRED)
|
||||
find_package(Boost REQUIRED COMPONENTS regex)
|
||||
|
||||
find_package(PkgConfig)
|
||||
@@ -33,16 +33,13 @@ message("-- Does this have a full path? If not, and it's just a file name, it's
|
||||
|
||||
include_directories("${PROJECT_BINARY_DIR}/src")
|
||||
include_directories("${PROJECT_SOURCE_DIR}/src")
|
||||
include(${wxWidgets_USE_FILE})
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
include_directories(${HUNSPELL_INCLUDE_DIRS})
|
||||
|
||||
# Magic Set Editor executable
|
||||
|
||||
add_executable(magicseteditor WIN32)
|
||||
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} ${HUNSPELL_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE wxWidgets::wxWidgets ${Boost_LIBRARIES} ${HUNSPELL_LIBRARIES})
|
||||
|
||||
file(GLOB_RECURSE sources src/*.cpp)
|
||||
list(FILTER sources EXCLUDE REGEX win32_cli_wrapper.cpp)
|
||||
@@ -131,15 +128,6 @@ if (${VCPKG_TARGET_TRIPLET} MATCHES ".*-static")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /GL")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /GL")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LTCG")
|
||||
# Need explicit dependencies on wx's dependencies
|
||||
find_package(png REQUIRED)
|
||||
find_package(tiff REQUIRED)
|
||||
find_package(jpeg REQUIRED)
|
||||
find_package(zlib REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} ${PNG_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} ${JPEG_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} ${ZLIB_LIBRARIES})
|
||||
target_link_libraries(${PROJECT_NAME} ${TIFF_LIBRARIES})
|
||||
# Defines
|
||||
add_definitions(-DSTATIC)
|
||||
add_definitions(-DHUNSPELL_STATIC)
|
||||
|
||||
@@ -7,7 +7,7 @@ More information on https://magicseteditor.boards.net/
|
||||
## Dependencies
|
||||
|
||||
The code depends on
|
||||
* wxWidgets >= 3.0
|
||||
* wxWidgets >= 3.3.1
|
||||
* boost
|
||||
* hunspell
|
||||
|
||||
@@ -25,7 +25,7 @@ On windows, the program can be compiled with Visual Studio (recommended) or with
|
||||
````
|
||||
and/or
|
||||
````
|
||||
.\vcpkg install pkgconf wxwidgets boost-smart-ptr boost-regex boost-logic boost-pool boost-iterator boost-json hunspell --triplet=x86-windows-static
|
||||
.\vcpkg install pkgconf wxwidgets[fonts] boost-smart-ptr boost-regex boost-logic boost-pool boost-iterator boost-json hunspell --triplet=x86-windows-static
|
||||
````
|
||||
then, regardless of your choice
|
||||
````
|
||||
|
||||
Reference in New Issue
Block a user