X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2Ftools%2FCMakeLists.txt;h=8f1e901c3db6f3609d73d5864ecba646adeee183;hp=8de8c5a12b2d48709d808ed8133b29d3f86138fb;hb=3ef806261b5482a584e05dc8311c8d7633f146b4;hpb=ea5f276a69989d4e5797b49083322bac2c9a820c diff --git a/source/tools/CMakeLists.txt b/source/tools/CMakeLists.txt index 8de8c5a..8f1e901 100644 --- a/source/tools/CMakeLists.txt +++ b/source/tools/CMakeLists.txt @@ -1,16 +1,19 @@ add_executable(bitmapcode bitmapcode.cpp) - + +if (MSVC) add_custom_command( TARGET bitmapcode POST_BUILD - COMMAND ${CMAKE_BINARY_DIR}/tools/bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps) + COMMAND $(OutDir)/bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps) +endif() target_link_libraries(bitmapcode LINK_PUBLIC + c++ ${wxWidgets_LIBRARIES}) -add_executable(odthelpbrowser +set (sources odthelpbrowser/base64.cpp odthelpbrowser/base64.h odthelpbrowser/frmMain.cpp @@ -21,8 +24,16 @@ add_executable(odthelpbrowser 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}) \ No newline at end of file + ${LIBXML2_LIBRARY})