mirror of
https://github.com/electronicarts/EASTL.git
synced 2026-01-18 17:21:19 +01:00
Add appveyor scripts for mingw-w64 gcc and clang (MSYS2). Minimize whitespace changes. Update CMakeLists to insert appropriate -std=c++** flags. Ignore IDE generated files *.suo (VS) and *.user (VS and Qt Creator) Use EA_UNUSED instead of a cast to void. Check for apple clang in CMakeLists, since apple doesn't follow the same versioning as LLVM. Modularize CMake files. Fix isnan selection in eahave.h Merge appveyor scripts and improve the corresponding build scripts. Move CMake folder to scripts folder to comply with EA internal standards. Update corresponding cmake files.
39 lines
1.7 KiB
CMake
39 lines
1.7 KiB
CMake
#-------------------------------------------------------------------------------------------
|
|
# Copyright (C) Electronic Arts Inc. All rights reserved.
|
|
#-------------------------------------------------------------------------------------------
|
|
cmake_minimum_required(VERSION 3.1)
|
|
project(EATest CXX)
|
|
|
|
#-------------------------------------------------------------------------------------------
|
|
# Library definition
|
|
#-------------------------------------------------------------------------------------------
|
|
file(GLOB EATEST_SOURCES "source/*.cpp" "include/EATest/*.*" "include/EATest/internal/*.h")
|
|
add_library(EATest ${EATEST_SOURCES})
|
|
|
|
#-------------------------------------------------------------------------------------------
|
|
# Defines
|
|
#-------------------------------------------------------------------------------------------
|
|
add_definitions(-D_CHAR16T)
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
|
|
#-------------------------------------------------------------------------------------------
|
|
# Compiler Flags
|
|
#-------------------------------------------------------------------------------------------
|
|
set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/../../../scripts/CMake")
|
|
include(CommonCppFlags)
|
|
|
|
if(APPLE)
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wdeprecated")
|
|
endif()
|
|
|
|
|
|
#-------------------------------------------------------------------------------------------
|
|
# Include directories
|
|
#-------------------------------------------------------------------------------------------
|
|
target_include_directories(EATest PUBLIC include)
|
|
target_link_libraries(EATest EABase)
|
|
target_link_libraries(EATest EAStdC)
|
|
target_link_libraries(EATest EASTL)
|
|
target_link_libraries(EATest EAMain)
|
|
target_link_libraries(EATest EAThread)
|