CLion Setup

x86_x64 Development on ARM

All my development is done in a Windows VM w/ CLion. I then upload my binaries to a Windows host that I RDP into.

Here are my CLion configurations for building to x86_x64.

Not necessary, but I like to use the CMake Options:

-DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=x86_64

Deploying to remote host

I like to deploy my builds to my home lab and can do so easily with CMake and a quick batch script.

Batch Script

@echo off
net use \\DEVBOX\NetworkShare\ <password> /user:<user>
copy C:\Users\dev\CLionProjects\Beacond\release\Beacond.exe \\DEVBOX\NetworkShare\

Update CMakeLists.txt

Add the following to your CMakeLists.txt

add_custom_command(
        TARGET Beacond
        POST_BUILD
        COMMAND "C:\\DevTools\\deploy.bat"
        COMMENT "Running deploy.bat"
)

Update CMake Build Profile (optional)

We can optionally add this functionality when we run the program in Clion (shift+fn+10)

Last updated