add_executable(bitmapcode bitmapcode.cpp) if (MSVC) target_link_libraries(bitmapcode LINK_PUBLIC ${wxWidgets_LIBRARIES}) add_custom_command( TARGET bitmapcode POST_BUILD COMMAND bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps) elseif (APPLE) target_link_libraries(bitmapcode LINK_PUBLIC c++ ${wxWidgets_LIBRARIES}) add_custom_command( TARGET bitmapcode POST_BUILD COMMAND bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps) else() target_link_libraries(bitmapcode LINK_PUBLIC ${wxWidgets_LIBRARIES}) add_custom_command( TARGET bitmapcode POST_BUILD COMMAND bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps) endif() set (sources odthelpbrowser/base64.cpp odthelpbrowser/base64.h odthelpbrowser/frmMain.cpp odthelpbrowser/frmMain.h odthelpbrowser/main.cpp odthelpbrowser/odt.cpp odthelpbrowser/odt.h odthelpbrowser/ODTHelpBrowser.cpp odthelpbrowser/ODTHelpBrowser.h odthelpbrowser/version.h) if (WIN32) add_executable(odthelpbrowser WIN32 ${sources}) elseif (APPLE) add_executable(odthelpbrowser MACOSX_BUNDLE ${sources}) else() add_executable(odthelpbrowser ${sources}) endif() target_link_libraries(odthelpbrowser LINK_PUBLIC ${wxWidgets_LIBRARIES} ${LIBXML2_LIBRARY})