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
${wxWidgets_LIBRARIES})
-add_executable(odthelpbrowser
+set (sources
odthelpbrowser/base64.cpp
odthelpbrowser/base64.h
odthelpbrowser/frmMain.cpp
odthelpbrowser/ODTHelpBrowser.cpp
odthelpbrowser/ODTHelpBrowser.h
odthelpbrowser/version.h)
+
+if (WIN32)
+ add_executable(odthelpbrowser WIN32 ${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})