[11167] Added CMake support

(based on cipherCOM's commit 0039476)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
cipherCOM 2011-02-13 03:42:09 +03:00 committed by VladimirMangos
parent c9942fb0cc
commit a81cf28610
43 changed files with 3465 additions and 4 deletions

View file

@ -0,0 +1,72 @@
#
# Copyright (C) 2005-2011 MaNGOS project <http://getmangos.com/>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# include(${CMAKE_SOURCE_DIR}/dep/tbb/tbbinclude.cmake)
file(GLOB_RECURSE framework_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp *.h)
source_group("Other"
REGULAR_EXPRESSION .*
)
source_group("GameSystem"
REGULAR_EXPRESSION GameSystem
)
source_group("Platform"
REGULAR_EXPRESSION Platform
)
source_group("Policies"
REGULAR_EXPRESSION Policies
)
source_group("Utilities"
REGULAR_EXPRESSION Utilities
)
source_group("LinkedReference"
REGULAR_EXPRESSION LinkedReference
)
source_group("Dynamic"
REGULAR_EXPRESSION Dynamic
)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${ACE_INCLUDE_DIR}
)
add_library(framework STATIC
${framework_SRCS}
)
if(NOT TBB_USE_EXTERNAL)
add_dependencies(framework TBB_Project)
# add_dependencies(framework tbb)
# add_dependencies(framework tbbmalloc)
endif()
if(NOT ACE_USE_EXTERNAL)
add_dependencies(framework ACE_Project)
# add_dependencies(framework ace)
endif()
target_link_libraries(framework
${TBB_LIBRARIES}
)