-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (42 loc) · 989 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
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
cmake_minimum_required(VERSION "3.16")
project("Fuel")
#------------------------------
#----------Fuel Build----------
#------------------------------
set(SDL2_LIB ${CMAKE_SOURCE_DIR}/ThirdParty/SDL2/build)
add_library("Fuel" STATIC
"src/core/Engine.h"
"src/core/Engine.cpp"
"src/core/Platform.h"
"src/core/Platform_linux.cpp"
"src/core/Platform_win32.cpp"
"src/mem.h"
"src/mem.cpp"
"src/config.h"
"src/log.h"
"src/asserts.h"
"src/asserts.cpp"
"src/main.h"
"src/Fuel.h"
)
target_include_directories("Fuel" PUBLIC
"src"
"SDL2/include"
)
target_link_libraries("Fuel" PRIVATE
${SDL2_LIB}/libSDL2.a
)
set_target_properties("Fuel" PROPERTIES LINKER_LANGUAGE CXX)
#------------------------------
#----------Test Build----------
#------------------------------
add_executable("Test"
"Test/Test.cpp"
)
target_link_libraries("Test" PRIVATE
"Fuel"
)
target_include_directories("Test" PUBLIC
"src"
"Test"
)