| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #-------------------------------------------------------------------------------------------
- # Copyright (C) Electronic Arts Inc. All rights reserved.
- #-------------------------------------------------------------------------------------------
- cmake_minimum_required(VERSION 3.1)
- project(EAStdC CXX)
- #-------------------------------------------------------------------------------------------
- # Options
- #-------------------------------------------------------------------------------------------
- option(EASTDC_BUILD_TESTS "Enable generation of build files for tests" OFF)
- #-------------------------------------------------------------------------------------------
- # Compiler Flags
- #-------------------------------------------------------------------------------------------
- set (CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/test/packages/EASTL/scripts/CMake")
- include(CommonCppFlags)
- #-------------------------------------------------------------------------------------------
- # Library definition
- #-------------------------------------------------------------------------------------------
- file(GLOB EASTDC_SOURCES "source/*.cpp")
- add_library(EAStdC ${EASTDC_SOURCES})
- if(EASTDC_BUILD_TESTS)
- add_subdirectory(test)
- endif()
- #-------------------------------------------------------------------------------------------
- # Defines
- #-------------------------------------------------------------------------------------------
- add_definitions(-D_CRT_SECURE_NO_WARNINGS)
- add_definitions(-D_SCL_SECURE_NO_WARNINGS)
- add_definitions(-D_CHAR16T)
- #-------------------------------------------------------------------------------------------
- # Include directories
- #-------------------------------------------------------------------------------------------
- target_include_directories(EAStdC PUBLIC include)
- #-------------------------------------------------------------------------------------------
- # Dependencies
- #-------------------------------------------------------------------------------------------
- target_link_libraries(EAStdC EABase)
- target_link_libraries(EAStdC EAAssert)
- target_link_libraries(EAStdC EAThread)
|