-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
72 lines (51 loc) · 1.79 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 3.0.0)
project(Morris VERSION 0.1.0 LANGUAGES C CXX)
set(PROJECT_NAME Morris)
set(CMAKE_CXX_STANDARD 20)
#
# We Use Fetch Content To Pull External Lib Sources and Make Them
#
include(FetchContent)
set(FETCHCONTENT_QUIET FALSE)
#
# stduuid - open source stduuid
#
FetchContent_Declare(
stduuid
GIT_REPOSITORY https://github.com/mariusbancila/stduuid
GIT_PROGRESS TRUE
)
set ( UUID_INCLUDE_DIRS
${CMAKE_CURRENT_SOURCE_DIR}/build/_deps/stduuid-src/include/
)
FetchContent_MakeAvailable(
stduuid
)
set(SOURCE_FILES
main.cpp
src/compiler/Tokenizer.cpp src/compiler/Tokenizer.h
src/compiler/Tokens.cpp src/compiler/Tokens.h
src/compiler/Parser.cpp src/compiler/Parser.h
src/compiler/InstructionASTVisitor.cpp src/compiler/InstructionASTVisitor.h
src/compiler/SymbolTable.cpp src/compiler/SymbolTable.h
src/runtime/VirtualMachine.cpp src/runtime/VirtualMachine.h
src/compiler/Instructions.cpp src/compiler/Instructions.h
src/compiler/compiler.cpp src/compiler/compiler.h
src/engine/Collision.cpp src/engine/Collision.h
src/engine/Input.h
src/engine/MainLoop.cpp src/engine/MainLoop.h
src/engine/Scheduler.cpp src/engine/Scheduler.h
src/engine/Agent.cpp src/engine/Agent.h
src/engine/Font.cpp src/engine/Font.h src/core/Object.cpp src/core/Object.h)
include(CTest)
enable_testing()
add_executable(Morris ${SOURCE_FILES})
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
set(SFML_LIBRARIES "-lsfml-graphics -lsfml-window -lsfml-system")
target_include_directories(${PROJECT_NAME} PUBLIC
${UUID_INCLUDE_DIRS}
${SFML_INCLUDE_DIR}
)
target_link_libraries(${PROJECT_NAME} ${SFML_LIBRARIES})