summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-25 16:13:24 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-25 16:13:24 +0200
commit3f09f9a8593601b47af4fc3d342823a861a14fbc (patch)
tree65d50593898f0cb1db83a6ab1d282780799ab1ee /CMakeLists.txt
parentdc92eafce18a0689eecf1e5a837aca6451ba5470 (diff)
Build Wine wrapper when necessary, not just the first time
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7dea5d0..47a48851 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -360,14 +360,15 @@ endif()
PROPERTIES LINK_FLAGS "-Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/posix-version-script.txt")
endif()
if(NOT SDK_WINE_NO_WRAPPER)
- add_custom_command( TARGET ftnoir-proto-wine
- COMMAND
- "${SDK_WINE_PREFIX}/bin/wineg++" -g -O2 -m32 -o
- ftnoir-wrapper-wine.exe -I "${CMAKE_SOURCE_DIR}"
- "${CMAKE_SOURCE_DIR}/ftnoir_protocol_wine/ftnoir-wrapper-wine-main.cxx"
- "${CMAKE_SOURCE_DIR}/ftnoir_protocol_wine/ftnoir-wrapper-wine-posix.cxx"
- "${CMAKE_SOURCE_DIR}/ftnoir_protocol_wine/ftnoir-wrapper-wine-windows.cxx"
- -lrt)
+ add_custom_command(
+ OUTPUT ftnoir-wrapper-wine.exe.so
+ COMMAND "${SDK_WINE_PREFIX}/bin/wineg++" -g -O2 -m32 -o
+ ftnoir-wrapper-wine.exe -I "${CMAKE_SOURCE_DIR}"
+ "${CMAKE_SOURCE_DIR}/ftnoir_protocol_wine/ftnoir-wrapper-wine-main.cxx"
+ "${CMAKE_SOURCE_DIR}/ftnoir_protocol_wine/ftnoir-wrapper-wine-posix.cxx"
+ "${CMAKE_SOURCE_DIR}/ftnoir_protocol_wine/ftnoir-wrapper-wine-windows.cxx"
+ -lrt)
+ add_custom_target(wine-wrapper ALL DEPENDS ftnoir-wrapper-wine.exe.so)
endif()
endif()