-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (23 loc) · 915 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
cmake_minimum_required (VERSION 3.16)
# set the output directory for built objects.
# This makes sure that the dynamic library goes into the build directory automatically.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIGURATION>")
project(HelloDiligent CXX)
add_subdirectory(extern/DiligentCore)
add_subdirectory(extern/SDL)
add_executable(SdlDiligentTest WIN32 source/main.cpp)
target_compile_options(SdlDiligentTest PRIVATE -DUNICODE)
target_link_libraries(SdlDiligentTest
PRIVATE
Diligent-GraphicsEngineD3D11-shared
Diligent-GraphicsEngineOpenGL-shared
Diligent-GraphicsEngineD3D12-shared
Diligent-GraphicsEngineVk-shared
Diligent-Common
SDL3::SDL3
)
if(WIN32)
set_target_properties(SdlDiligentTest PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
endif()
copy_required_dlls(SdlDiligentTest)