Core/Build: Fix problem with acelite

This commit is contained in:
Spp
2012-11-09 16:09:27 +01:00
parent 333b8e5159
commit a57254d769
2 changed files with 27 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ new file mode 100644
index 0000000..acd3d5a
--- /dev/null
+++ b/dep/acelite/ace/CMakeLists.txt
@@ -0,0 +1,337 @@
@@ -0,0 +1,348 @@
+# Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
+#
+# This file is free software; as a special exception the author gives
@@ -325,6 +325,11 @@ index 0000000..acd3d5a
+ XTI_ATM_Mcast.cpp
+)
+
+if (USE_COREPCH)
+ set(ace_PCH_HDR PrecompiledHeaders/WinAcePCH.h)
+ set(ace_PCH_SRC PrecompiledHeaders/WinAcePCH.cpp)
+endif()
+
+include_directories(
+ ${CMAKE_SOURCE_DIR}/dep/acelite
+ ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders
@@ -336,9 +341,15 @@ index 0000000..acd3d5a
+
+add_definitions(-DACE_BUILD_DLL)
+
+add_library(ace SHARED ${ace_STAT_SRCS})
+add_library(ace SHARED
+ ${ace_STAT_SRCS}
+ ${ace_PCH_SRC}
+)
+
+add_native_precompiled_header(ace ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/WinAcePCH)
+# Generate precompiled header
+if( USE_COREPCH )
+ add_cxx_pch(ace ${ace_PCH_HDR} ${ace_PCH_SRC})
+endif()
+
+install(TARGETS ace RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}")
diff --git a/dep/acelite/ace/PrecompiledHeaders/WinAcePCH.cpp b/dep/acelite/ace/PrecompiledHeaders/WinAcePCH.cpp

View File

@@ -320,6 +320,11 @@ set(ace_STAT_SRCS
XTI_ATM_Mcast.cpp
)
if (USE_COREPCH)
set(ace_PCH_HDR PrecompiledHeaders/WinAcePCH.h)
set(ace_PCH_SRC PrecompiledHeaders/WinAcePCH.cpp)
endif()
include_directories(
${CMAKE_SOURCE_DIR}/dep/acelite
${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders
@@ -331,8 +336,14 @@ set_source_files_properties(Atomic_Op_Sparc.c Rtems_init.c PROPERTIES LANGUAGE C
add_definitions(-DACE_BUILD_DLL)
add_library(ace SHARED ${ace_STAT_SRCS})
add_library(ace SHARED
${ace_STAT_SRCS}
${ace_PCH_SRC}
)
add_native_precompiled_header(ace ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/WinAcePCH)
# Generate precompiled header
if( USE_COREPCH )
add_cxx_pch(ace ${ace_PCH_HDR} ${ace_PCH_SRC})
endif()
install(TARGETS ace RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}")