-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·43 lines (29 loc) · 1.15 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
cmake_minimum_required(VERSION 3.17.2)
project(GBEmu LANGUAGES CXX)
add_executable(GBEmu main.cpp)
set_property(TARGET GBEmu PROPERTY CXX_STANDARD 17)
# set(RELEASE_FLAGS "-Ofast -DNDEBUG -DBOOST_DISABLE_ASSERTS")
# set(DEBUG_FLAGS "-O0 -ggdb3")
# set(CMAKE_CXX_FLAGS_RELEASE ${RELEASE_FLAGS})
# set(CMAKE_C_FLAGS_RELEASE ${RELEASE_FLAGS})
# set(CMAKE_CXX_FLAGS_DEBUG ${DEBUG_FLAGS})
# set(CMAKE_C_FLAGS_DEBUG ${DEBUG_FLAGS})
# set(CMAKE_VERBOSE_MAKEFILE ON)
# add_compile_options(
# -Wall -Werror -Wno-error=maybe-uninitialized
# $<$<CONFIG:RELEASE>:-Ofast>
# $<$<CONFIG:DEBUG>-O0>
# $<$<CONFIG:DEBUG>-ggdb3>
# )
# add_compile_definitions(
# $<$<CONFIG:RELEASE>:NDEBUG>
# $<$<CONFIG:RELEASE>:BOOST_DISABLE_ASSERTS>
# )
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
include_directories( ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} )
target_link_libraries(GBEmu ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} )
target_include_directories(GBEmu PUBLIC "./include")
target_include_directories(GBEmu PUBLIC "./include/MemoryController")
target_include_directories(GBEmu PUBLIC "./include/Peripheral")
add_subdirectory("src")