Re: Re[2]: No RibbonBar in CLion on MacOS14.7
Christian Homeier <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Additionally I tried what you said, simply adding ribbon to this section do
the same.
cmake_minimum_required(VERSION 3.30)
project(ProjectManager)
set(CMAKE_CXX_STANDARD 26)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
find_package(wxWidgets COMPONENTS base core ribbon REQUIRED)
include("${wxWidgets_USE_FILE}")
set(SRCS project_manager.cpp )
if (APPLE)
project(${PROJECT_NAME} VERSION 3.30 LANGUAGES CXX OBJCXX)
else ()
project(${PROJECT_NAME} VERSION 3.30 LANGUAGES CXX )
endif (APPLE)
if(WIN32)
set(SRCS ${SRCS} wxWidgetsTest.rc)
endif (WIN32)
add_executable(ProjectManager project_manager.cpp
pjm_frame.cpp
pjm_frame.h
ribbonbar.cpp
menubar.cpp
)
target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})
Vadim Zeitlin schrieb am Freitag, 7. März 2025 um 18:09:24 UTC+1:
> On Fri, 7 Mar 2025 09:08:14 -0800 (PST) Christian Homeier wrote:
>
> CH> Hey Varim,
> CH>
> CH> thanks a lot for replying. I don´t know if I did it "the right way"
> but in
> CH> my case it seems that the following
> CH> were the Problem:
> CH>
> CH> In my CMakeList.txt I defined
> CH>
> CH> find_package(wxWidgets COMPONENTS *base core* REQUIRED)
> CH>
> CH> after changing it to
> CH>
> CH> find_package(wxWidgets COMPONENTS *all *REQUIRED)
> CH>
> CH> the problem seems to has gone....
>
> Yes, sure, if you CMake you need to add "ribbon" to the list of libraries.
> Using "all", unsurprisingly, includes all libraries, including this one.
>
> Regards,
> VZ
>
> --
> TT-Solutions: wxWidgets consultancy and technical support
> https://www.tt-solutions.com/
>
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/84e72ea4-abd5-4da1-863d-eca9221938c5n%40googlegroups.com.