diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cbeb4ed9a..c1327980b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) +# Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL3 v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3 # # This file is free software; as a special exception the author gives # unlimited permission to copy and/or distribute it, with or without @@ -28,7 +28,9 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1) set(AC_PATH_ROOT "${CMAKE_SOURCE_DIR}") # set macro-directory -set(CMAKE_MODULE_PATH "${AC_PATH_ROOT}/src/cmake/macros") +list(APPEND CMAKE_MODULE_PATH + "${CMAKE_SOURCE_DIR}/src/cmake/macros" + "${CMAKE_SOURCE_DIR}/deps/cotire/CMake") include(CheckCXXSourceRuns) include(CheckIncludeFiles) @@ -82,26 +84,17 @@ endif() include(CheckPlatform) include(GroupSources) +include(AutoCollect) # basic packagesearching and setup (further support will be needed, this is a preliminary release!) -set(OPENSSL_EXPECTED_VERSION 1.0.0) set(ACE_EXPECTED_VERSION 6.0.3) find_package(PCHSupport) find_package(ACE REQUIRED) -find_package(OpenSSL REQUIRED) -find_package(Threads REQUIRED) find_package(MySQL REQUIRED) -if( UNIX ) - find_package(Readline) - find_package(ZLIB) - find_package(BZip2) - - if ( WITH_PERFTOOLS ) - find_package(Gperftools) - endif() - +if(UNIX AND WITH_PERFTOOLS) + find_package(Gperftools) endif() if(NOT WITHOUT_GIT) @@ -114,7 +107,6 @@ include(src/cmake/genrev.cmake) # print out the results before continuing include(src/cmake/showoptions.cmake) - # # Loading framework # @@ -129,7 +121,6 @@ if( TOOLS ) add_subdirectory(src/tools) endif() - # # Loading application sources # |