Relative Content

Tag Archive for c++cmake

Can I create a cmake “pseudo target” that will do compile/link options for me?

In my project, I have a mix of dependencies, some with cmake files that I can nicely use target_link_libraries() (e.g. boost_program_options) with, but some don’t (e.g. openssl; I have to compile a custom version for compatibility reasons) and I have to use ExternalProject_Add and for them, and then I need to use a mixture of target_link_libraries(), target_compile_options() and target_link_options(), e.g.:

How can I compile my program to a windows executable

I have a C++ program that uses protobuf and asio, which compiles fine under Linux using g++. I am wondering how I could go about making a new preset which allows me to compile this program into a windows executable.

How can I compile my program to a windows executable

I have a C++ program that uses protobuf and asio, which compiles fine under Linux using g++. I am wondering how I could go about making a new preset which allows me to compile this program into a windows executable.

How can I statically link system libraries into a static library using cmake

I’m working on a fairly substantial application and need to provide part of the functionality to other teams in the company as a static library (the main reason for the static library is to prevent conflicts with potential different versions of sub-libraries or different compiler versions/options).

How can I statically link system libraries into a static library using cmake

I’m working on a fairly substantial application and need to provide part of the functionality to other teams in the company as a static library (the main reason for the static library is to prevent conflicts with potential different versions of sub-libraries or different compiler versions/options).

How can I statically link system libraries into a static library using cmake

I’m working on a fairly substantial application and need to provide part of the functionality to other teams in the company as a static library (the main reason for the static library is to prevent conflicts with potential different versions of sub-libraries or different compiler versions/options).

How can I statically link system libraries into a static library using cmake

I’m working on a fairly substantial application and need to provide part of the functionality to other teams in the company as a static library (the main reason for the static library is to prevent conflicts with potential different versions of sub-libraries or different compiler versions/options).

How can I statically link system libraries into a static library using cmake

I’m working on a fairly substantial application and need to provide part of the functionality to other teams in the company as a static library (the main reason for the static library is to prevent conflicts with potential different versions of sub-libraries or different compiler versions/options).