mirror of
https://github.com/grumpycoders/pcsx-redux.git
synced 2025-04-02 10:41:54 -04:00
37 lines
1.8 KiB
CMake
37 lines
1.8 KiB
CMake
#-------------------------------------------------------------------------------------------
|
|
# Copyright (C) Electronic Arts Inc. All rights reserved.
|
|
#-------------------------------------------------------------------------------------------
|
|
cmake_minimum_required(VERSION 3.1)
|
|
project(EABase 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(EABase INTERFACE)
|
|
|
|
#-------------------------------------------------------------------------------------------
|
|
# Include dirs
|
|
#-------------------------------------------------------------------------------------------
|
|
target_include_directories(EABase INTERFACE include/Common)
|
|
|
|
#-------------------------------------------------------------------------------------------
|
|
# Installation
|
|
#-------------------------------------------------------------------------------------------
|
|
install(DIRECTORY include/Common/EABase DESTINATION include)
|