#------------------------------------------------------------------------------------------- # Copyright (C) Electronic Arts Inc. All rights reserved. #------------------------------------------------------------------------------------------- cmake_minimum_required(VERSION 3.20) set(TargetName EABase) project(${TargetName} CXX) #------------------------------------------------------------------------------------------- # Options #------------------------------------------------------------------------------------------- option(EABASE_BUILD_TESTS "Enable generation of build files for tests" OFF) #------------------------------------------------------------------------------------------- # Package Tests #------------------------------------------------------------------------------------------- if(EABASE_BUILD_TESTS) add_subdirectory(test) endif() #------------------------------------------------------------------------------------------- # Defines #------------------------------------------------------------------------------------------- add_definitions(-D_CHAR16T) #------------------------------------------------------------------------------------------- # Header only library #------------------------------------------------------------------------------------------- add_library(${TargetName} INTERFACE) #------------------------------------------------------------------------------------------- # Include dirs #------------------------------------------------------------------------------------------- target_include_directories(${TargetName} INTERFACE $ $/include/3rdPartyLibs/EABase/include/Common> ) #------------------------------------------------------------------------------------------- # Installation #------------------------------------------------------------------------------------------- nau_collect_files(HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/include/Common/EABase MASK "*.h" "*.hpp" "*.ipp" ) nau_install(${TargetName} 3rdPartyLibs ${HEADERS})