summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-01 11:22:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-01 11:22:19 +0100
commit8744ae5baea83ed068a432d2dcc1c13fc347b8b2 (patch)
tree181e948debfb11de49859d1291eb482ff56a55c5 /CMakeLists.txt
parent46807a9feea303144884f2865ac37f55c54fdb5a (diff)
fix build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 100cad67..f7459e0a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -191,16 +191,19 @@ macro(opentrack_module n dir)
endmacro()
macro(opentrack_library n)
- cmake_parse_arguments(lib- "" "LINK COMPILE" "" ${ARGN})
+ cmake_parse_arguments(foolib "" "LINK;COMPILE" "" ${ARGN})
+ if(NOT " ${foolib_UNPARSED_ARGUMENTS}" STREQUAL " ")
+ message(FATAL_ERROR "opentrack_library bad formals")
+ endif()
add_library(${n} SHARED ${${n}-c} ${${n}-uih} ${${n}-rcc})
target_link_libraries(${n} ${MY_QT_LIBS})
if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE)
SET_TARGET_PROPERTIES(${n} PROPERTIES
- LINK_FLAGS "${lib-LINK} -Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/${version-script}-version-script.txt"
- COMPILE_FLAGS "${lib-COMPILE}"
+ LINK_FLAGS "${foolib_LINK} -Wl,--version-script=${CMAKE_SOURCE_DIR}/facetracknoir/${version-script}-version-script.txt"
+ COMPILE_FLAGS "${foolib_COMPILE}"
)
else()
- set_target_properties(${n} PROPERTIES LINK_FLAGS "${lib-LINK}" COMPILE_FLAGS "${lib-COMPILE}")
+ set_target_properties(${n} PROPERTIES LINK_FLAGS "${foolib_LINK}" COMPILE_FLAGS "${foolib_COMPILE}")
endif()
install(TARGETS ${n} RUNTIME DESTINATION . LIBRARY DESTINATION .)
endmacro()
@@ -373,6 +376,7 @@ endif()
if(SDK_WINE_PREFIX)
opentrack_library(opentrack-proto-wine)
+ target_link_libraries(opentrack-proto-wine opentrack-compat opentrack-csv)
if(NOT SDK_WINE_NO_WRAPPER)
set(my-rt -lrt)
if(APPLE)