--- a/QTfrontend/CMakeLists.txt Wed Jun 19 00:52:39 2013 +0400
+++ b/QTfrontend/CMakeLists.txt Wed Jun 19 00:07:31 2013 +0200
@@ -57,6 +57,7 @@
include_directories(${SDLMIXER_INCLUDE_DIR})
include_directories(${PHYSFS_INCLUDE_DIR})
include_directories(${PHYSLAYER_INCLUDE_DIR})
+include_directories(${LUA_INCLUDE_DIR}) #brought by physlayer hwpacksmounter.h
if(UNIX)
@@ -209,6 +210,11 @@
)
endif()
+if(CMAKE_CXX_COMPILER MATCHES "clang*")
+ list(APPEND HW_LINK_LIBS stdc++)
+endif()
+
+
target_link_libraries(hedgewars ${HW_LINK_LIBS})
--- a/misc/libphyslayer/CMakeLists.txt Wed Jun 19 00:52:39 2013 +0400
+++ b/misc/libphyslayer/CMakeLists.txt Wed Jun 19 00:07:31 2013 +0200
@@ -4,8 +4,7 @@
include_directories(${SDL_INCLUDE_DIR})
include_directories(${LUA_INCLUDE_DIR})
-## extra functions needed by Hedgewars
-## TODO: maybe it's better to have them in a separate library?
+
set(PHYSLAYER_SRCS
physfsrwops.c
physfslualoader.c