Not Logged In
|
Login
|
Register
Home
|
News
|
Projects
|
Releases
Bugs
|
RFE
|
Repositories
|
Help
projects
/
xestiaab
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrate building on Windows to using CMake
[xestiaab/.git]
/
source
/
tools
/
CMakeLists.txt
diff --git
a/source/tools/CMakeLists.txt
b/source/tools/CMakeLists.txt
index
8de8c5a
..
a34ec67
100644
(file)
--- a/
source/tools/CMakeLists.txt
+++ b/
source/tools/CMakeLists.txt
@@
-1,16
+1,18
@@
add_executable(bitmapcode
bitmapcode.cpp)
add_executable(bitmapcode
bitmapcode.cpp)
+if (MSVC)
add_custom_command(
TARGET bitmapcode
POST_BUILD
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})
target_link_libraries(bitmapcode
LINK_PUBLIC
${wxWidgets_LIBRARIES})
-add_executable(odthelpbrowser
+set (sources
odthelpbrowser/base64.cpp
odthelpbrowser/base64.h
odthelpbrowser/frmMain.cpp
odthelpbrowser/base64.cpp
odthelpbrowser/base64.h
odthelpbrowser/frmMain.cpp
@@
-21,8
+23,14
@@
add_executable(odthelpbrowser
odthelpbrowser/ODTHelpBrowser.cpp
odthelpbrowser/ODTHelpBrowser.h
odthelpbrowser/version.h)
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}
target_link_libraries(odthelpbrowser
LINK_PUBLIC
${wxWidgets_LIBRARIES}
- ${LIBXML2_LIBRARY})
\ No newline at end of file
+ ${LIBXML2_LIBRARY})
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software
Xestia Address Book
Xestia Calendar
Development
Xestia Gelforn
Everything else
About
News
Privacy Policy