Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dguittet committed May 15, 2024
1 parent 52a6b17 commit b44cec1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -DCMAKE_CONFIGURATION_TYPES="Release" -DCMAKE_SYSTEM_VERSION=10.0 ..
Rename-Item "$env:WXMSW3\lib\vc14x_dll vc14x_x64_dll"
Rename-Item "$env:WXMSW3\lib\vc14x_dll" vc14x_x64_dll
dir $env:WXMSW3\lib
MSBuild.exe .\lk.sln /t:Build /p:Configuration=Release
Expand Down
36 changes: 22 additions & 14 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,16 @@ if (UNIX)
find_package(wxWidgets REQUIRED xrc stc richtext ribbon propgrid aui gl html qa adv core xml net base)
endif ()
else ()

# set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
#find_package(wxWidgets REQUIRED qa webview aui richtext html propgrid adv net stc core base scintilla)
if(NOT EXISTS "$ENV{WXMSW3}/lib/wxwidgets.props")
set(wxWidgets_ROOT_DIR $ENV{WXMSW3})
find_package(wxWidgets REQUIRED qa webview aui richtext html propgrid adv net stc core base scintilla)
include(${wxWidgets_USE_FILE})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS}")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()
endif ()

#include(${wxWidgets_USE_FILE})
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${wxWidgets_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")


#####################################################################################################################
#
Expand Down Expand Up @@ -155,14 +156,21 @@ if (NOT SAM_SKIP_TOOLS)

target_link_libraries(lk_sandbox lk)


set_property(
TARGET lk_sandbox
PROPERTY VS_USER_PROPS "$ENV{WXMSW3}/wxwidgets.props"
)
if (MSVC and EXISTS "$ENV{WXMSW3}/lib/wxwidgets.props")
set_property(
TARGET lk_sandbox
PROPERTY VS_USER_PROPS "$ENV{WXMSW3}/wxwidgets.props"
)
else()
target_link_libraries(lk_sandbox ${wxWidgets_LIBRARIES})
endif()
endif()

if (MSVC and EXISTS "$ENV{WXMSW3}/lib/wxwidgets.props")
set_property(
TARGET lk
PROPERTY VS_USER_PROPS "$ENV{WXMSW3}/wxwidgets.props"
TARGET lk
PROPERTY VS_USER_PROPS "$ENV{WXMSW3}/wxwidgets.props"
)
else()
target_link_libraries(lk ${wxWidgets_LIBRARIES})
endif()

0 comments on commit b44cec1

Please sign in to comment.