Talk:CMake

From WxWiki

Jump to: navigation, search

cmake 2.4.2 comes with its own UseWxWigets.cmake. Maybe this article should be updated to reflect this? I used this CMakeLists.txt:

PROJECT( WXMINIMAL )
SET( wxWidgets_USE_LIBS )
FIND_PACKAGE(wxWidgets REQUIRED)
INCLUDE( ${wxWidgets_USE_FILE} )
INCLUDE_DIRECTORIES(${WXMINIMAL_SOURCE_DIR}
                    ${WXWINDOWS_INCLUDE_PATH})
ADD_EXECUTABLE(minimal WIN32 minimal.cpp minimal.rc)
TARGET_LINK_LIBRARIES(minimal ${wxWidgets_LIBRARIES})

I had to change one thing though.. in the .rc, i changed the line:

mondrian ICON "sample.ico"

to

mondrian ICON "../sample.ico"

(For wxWidgets 2.6.3 on Windows) and then everything worked great. -nuge

Personal tools