Trying to set up DirectX in CLion & Rider

Answered

I'm trying to set up CLion & Rider for DirectX development and I'm not having much luck finding any useful results via web searches.  I'm not looking to do anything complicated -- no Unity or UnrealEngine stuff -- just draw a few informational graphs using mostly line-based sine waves and screensavers.  I have DirectX SDKs installed from DX9 through DX12 but I'm not too familiar with cmake.  Most of my build system experience has been spent on autotools since the early 2000s & basic 'roll-your-own' stuff in the 90s prior to that so if anyone can point out relations between the two, it would likely be quite helpful(though not strictly necessary).

0
7 comments

Hello!

Are you on Windows? What language do you use, C++ or C#?

0
Avatar
Permanently deleted user

My apologies for the late response.

For projects involving DirectX, I'm working on Windows systems.  I'm working on separate projects in both languages and would like to set up both CLion and Rider to support DirectX.

0
Avatar
Permanently deleted user

Yes, thank you.  I had found both of those results.  However, neither resulted in a functional setup for DirectX development.  I will investigate further to determine if I have misconfigured something but since the VM is relatively fresh, I wouldn't think so.

0

We don't have any specific support for DirectX in CLion, so I can't help you, unfortunately.

0

@... Did you manage to get this sorted? I'm trying to setup CLion for DirectX myself.

 

0
Avatar
Permanently deleted user

CMakeLists.txt

cmake_minimum_required(VERSION 3.20)
project(project_name)

set(CMAKE_CXX_STANDARD 17)

# Create executable
add_executable(HelloWindows WIN32 HelloWindows/HelloMsg.cpp)

# Create library link a executable
target_link_libraries(HelloWindows d3dcompiler d3d12 dxgi gdi32)

 

0

Please sign in to leave a comment.