X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Ftools%2FCMakeLists.txt;h=7a05fce1bd43080ead2d35e294e917b2a5d28a06;hp=8f1e901c3db6f3609d73d5864ecba646adeee183;hb=ce18438e729e6c11eebd3a5fb73f4039fdda33a0;hpb=3ef806261b5482a584e05dc8311c8d7633f146b4 diff --git a/source/tools/CMakeLists.txt b/source/tools/CMakeLists.txt index 8f1e901..7a05fce 100644 --- a/source/tools/CMakeLists.txt +++ b/source/tools/CMakeLists.txt @@ -2,16 +2,31 @@ add_executable(bitmapcode bitmapcode.cpp) if (MSVC) -add_custom_command( - TARGET bitmapcode - POST_BUILD - COMMAND $(OutDir)/bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps) + 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() - -target_link_libraries(bitmapcode - LINK_PUBLIC - c++ - ${wxWidgets_LIBRARIES}) set (sources odthelpbrowser/base64.cpp