-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (20 loc) · 892 Bytes
/
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
cmake_minimum_required(VERSION 3.0.0)
project(SNES_Emulator VERSION 0.1.0)
include(CTest)
enable_testing()
set(CXX_STANDARD 2014)
file (GLOB_RECURSE Project_SOURCES CONFIGURE_DEPENDS "./Sources/*.cc")
#file (GLOB_RECURSE Project_HEADERS CONFIGURE_DEPENDS "./*.h")
#include_directories("include")
set(SFML_DIR "../../../Librairies/SFML/SFML-install/lib/cmake/SFML")
find_package(SFML 2.5 COMPONENTS graphics audio REQUIRED)
#include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
include_directories("./Sources/")
include_directories("./Libs")
add_definitions(-DCMAKE_EXPORT_COMPILE_COMMANDS=ON)
add_executable(SNES_Emulator ${Project_SOURCES})
#target_link_libraries(SNES_Emulator ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})
target_link_libraries(SNES_Emulator sfml-graphics sfml-audio)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)