File tree 2 files changed +52
-28
lines changed
2 files changed +52
-28
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,7 @@ function(set_as_hdll target)
10
10
endfunction ()
11
11
12
12
if (WIN32 )
13
- option (WITH_DIRECTX "Build directx.hdll." ON )
14
- if (WITH_DIRECTX)
15
- add_subdirectory (directx)
16
- endif ()
13
+ add_subdirectory (directx)
17
14
endif ()
18
15
19
16
option (WITH_FMT "Build fmt.hdll." ON )
Original file line number Diff line number Diff line change 1
- find_package (DirectX)
2
-
3
- add_library (directx.hdll SHARED
4
- directx.cpp
5
- gamecontroller.c
6
- window.c
7
- )
8
-
9
- set_as_hdll(directx)
10
-
11
- target_link_libraries (directx.hdll
12
- libhl
13
- d3d11
14
- dxgi
15
- d3dcompiler
16
- xinput9_1_0
17
- dinput8
18
- )
19
-
20
- install (
21
- TARGETS
22
- directx.hdll
23
- DESTINATION ${HDLL_DESTINATION}
24
- )
1
+ option (WITH_DIRECTX "Build directx.hdll." ON )
2
+
3
+ if (WITH_DIRECTX)
4
+ find_package (DirectX)
5
+
6
+ add_library (directx.hdll SHARED
7
+ directx.cpp
8
+ gamecontroller.c
9
+ window.c
10
+ )
11
+
12
+ set_as_hdll(directx)
13
+
14
+ target_link_libraries (directx.hdll
15
+ libhl
16
+ d3d11
17
+ dxgi
18
+ d3dcompiler
19
+ xinput9_1_0
20
+ dinput8
21
+ )
22
+
23
+ install (
24
+ TARGETS
25
+ directx.hdll
26
+ DESTINATION ${HDLL_DESTINATION}
27
+ )
28
+ endif ()
29
+
30
+ option (WITH_DX12 "Build dx12.hdll." ON )
31
+
32
+ if (WITH_DX12)
33
+ add_library (dx12.hdll SHARED
34
+ dx12.cpp
35
+ )
36
+
37
+ set_as_hdll(dx12)
38
+
39
+ target_link_libraries (dx12.hdll
40
+ libhl
41
+ d3d12
42
+ dxgi
43
+ dxcompiler
44
+ )
45
+
46
+ install (
47
+ TARGETS
48
+ dx12.hdll
49
+ DESTINATION ${HDLL_DESTINATION}
50
+ )
51
+ endif ()
You can’t perform that action at this time.
0 commit comments