forked from RetroTournaments/Graphite
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
49 lines (41 loc) · 1.51 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
################################################################################
##
## Copyright (C) 2021-2021 FlibidyDibidy
##
## This file is part of Graphite.
##
## Graphite is free software; you can redistribute it and#or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## Graphite is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with Graphite; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##
################################################################################
cmake_minimum_required(VERSION 3.6)
cmake_policy(SET CMP0012 NEW)
cmake_policy(SET CMP0077 NEW)
project(Graphite)
option(GRAPHITE_RGMS_ONLY "Build only the RGMS libraries" OFF)
if(WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /O2 /std:c++20")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++2a -Wno-sign-conversion")
endif()
add_subdirectory(3rd)
include_directories(.)
add_subdirectory(rgmutil)
add_subdirectory(rgmui)
add_subdirectory(rgmnes)
add_subdirectory(rgmvideo)
if(NOT GRAPHITE_RGMS_ONLY)
add_subdirectory(graphite)
add_subdirectory(carbon)
endif()