-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (24 loc) · 1 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
cmake_minimum_required(VERSION 3.15)
set(PROJECT_NAME "8mu")
project(${PROJECT_NAME})
set(SFML_DIR "${CMAKE_CURRENT_LIST_DIR}/libs/SFML-2.5.1/lib/cmake/SFML")
IF(CMAKE_BUILD_TYPE MATCHES Debug)
file(GLOB ALL_REQUIRED_DLL "libs/required_dll/debug/*.dll")
ELSEIF(CMAKE_BUILD_TYPE MATCHES Release)
file(GLOB ALL_REQUIRED_DLL "libs/required_dll/release/*.dll")
ENDIF(CMAKE_BUILD_TYPE MATCHES Debug)
file(COPY ${ALL_REQUIRED_DLL} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
set(CMAKE_CXX_STANDARD 11)
add_executable(${PROJECT_NAME}
src/spec.hpp
src/Tester.hpp src/Tester.cpp
src/Beeper.hpp src/Beeper.cpp
src/CHIP8.hpp src/CHIP8.cpp
src/Display.hpp src/Display.cpp
src/Input.hpp src/Input.cpp
src/Runner.hpp src/Runner.cpp
src/Timer.hpp src/Timer.cpp
src/main.cpp
)
find_package(SFML 2.5.1 COMPONENTS system window graphics network audio REQUIRED)
target_link_libraries(${PROJECT_NAME} sfml-audio sfml-graphics sfml-window sfml-system)