Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 11:25:33 +0000



Post From: CMake and Including the Sierra Chart Header files?

[2020-09-20 22:14:28]
mbilyanov - Posts: 62
Hi,

I have successfully built a DLL under Linux following instructions on this board. Now I'm trying to re-create the same process but using CMake.

I got bits and pieces to work (toolchain file, mingw32 etc.), however, I was not able to add the `ACS_Source` file to the include directories.

Has anyone successfully built a SC Custom Study DLL using CMake?

Basically this command works:
/usr/bin/x86_64-w64-mingw32-g++ -march=x86-64 -mtune=x86-64 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -I /home/me/.wine/drive_c/SierraChartLinux/ACS_Source/ -w ./src/MySCStudy.cpp -o ./build/MySCStudy.dll

But inside my CMakeLists, I was not able to specify the include directory for some reason.

Any ideas?