Files
EASTL/test/packages/EAStdC/CMakeLists.txt
DragoonX6 edb79f9177 MinGW-w64 support (#51)
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.
2016-09-06 10:44:01 -07:00

37 lines
1.7 KiB
CMake

#-------------------------------------------------------------------------------------------
# Copyright (C) Electronic Arts Inc. All rights reserved.
#-------------------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.1)
project(EAStdC CXX)
#-------------------------------------------------------------------------------------------
# Library definition
#-------------------------------------------------------------------------------------------
file(GLOB EASTDC_SOURCES "source/*.cpp" "include/EAStdC/*.h")
add_library(EAStdC ${EASTDC_SOURCES})
#-------------------------------------------------------------------------------------------
# Defines
#-------------------------------------------------------------------------------------------
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
add_definitions(-D_SCL_SECURE_NO_WARNINGS)
add_definitions(-D_CHAR16T)
#-------------------------------------------------------------------------------------------
# Compiler Flags
#-------------------------------------------------------------------------------------------
set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/../../../scripts/CMake")
include(CommonCppFlags)
#-------------------------------------------------------------------------------------------
# Include directories
#-------------------------------------------------------------------------------------------
target_include_directories(EAStdC PUBLIC include)
#-------------------------------------------------------------------------------------------
# Dependencies
#-------------------------------------------------------------------------------------------
target_link_libraries(EAStdC EABase)
target_link_libraries(EAStdC EAAssert)