30 lines
495 B
CMake
30 lines
495 B
CMake
|
|
cmake_minimum_required(VERSION 3.15)
|
||
|
|
|
||
|
|
project(HelloEarth)
|
||
|
|
|
||
|
|
add_executable(HelloEarth
|
||
|
|
WIN32
|
||
|
|
main.cpp
|
||
|
|
BattleFireDirect.cpp
|
||
|
|
StaticMeshComponent.cpp
|
||
|
|
Utils.cpp
|
||
|
|
stbi/stb_image.cpp
|
||
|
|
)
|
||
|
|
|
||
|
|
target_compile_definitions(HelloEarth PRIVATE
|
||
|
|
UNICODE
|
||
|
|
_UNICODE
|
||
|
|
)
|
||
|
|
|
||
|
|
target_include_directories(HelloEarth PRIVATE
|
||
|
|
${CMAKE_SOURCE_DIR}/mvs/HelloEarth
|
||
|
|
${CMAKE_SOURCE_DIR}/mvs/HelloEarth/stbi
|
||
|
|
)
|
||
|
|
|
||
|
|
target_link_libraries(HelloEarth PRIVATE
|
||
|
|
d3d12
|
||
|
|
dxgi
|
||
|
|
d3dcompiler
|
||
|
|
winmm
|
||
|
|
)
|