Re: [CMake] Making find_package work + compiler flags

2019-11-14 Thread Guy Mac
Hi, the simplest way AFAIK would be like install(   TARGETS foo EXPORT Foo-config   ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}   LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ) install(EXPORT Foo-config DESTINATION ${CMAKE_INSTALL_DATADIR}/Foo/cmake) or install(EXPORT Foo-config NAMESPACE foo:

Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86

2019-09-17 Thread Guy Mac
AFAIK you can set the generator in a CMakeSettings.json file if you are using MSVC. https://docs.microsoft.com/en-us/cpp/build/cmakesettings-reference?view=vs-2019 On 9/17/2019 10:00 AM, Juan Sanchez wrote: Hello, My impression that targeting 32 bit depends on what generator you are using.

Re: [CMake] install externally supplied include and lib

2019-08-19 Thread Guy Mac
Ran, I did something like that with the following: cmake_minimum_required(VERSION 3.11) project(X) include(GNUInstallDirs) set(X_inc "${CMAKE_CURRENT_SOURCE_DIR}/include/") set(X_lib "${CMAKE_CURRENT_SOURCE_DIR}/lib/") install(DIRECTORY ${X_lib} DESTINATION ${CMAKE_INSTALL_LIBDIR} FILES_MATCHI