Hi,
I am using CMake to build a solution consisting of several projects (using
Visual Studio lingo here) where some of them are libraries, some
executables. Some executables can run only on the OS (i.e. OSX and Windows)
and will not work correctly on iOS.
We have one such executable that
Hi,
If I set the LIBRARY_OUTPUT_PATH for iOS projects like this:
someDir/lib/
then the final directory for the library outputs is:
someDir/lib/debug
assuming I am building the debug configuration. But if I now specify the
directories for linking:
link_directories(someDir/lib)
in Xcode the
Hi,
If I have the following command:
execute_process(
COMMAND ${CMAKE_COMMAND} -E tar xzf mySDK.tar.gz
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
the extraction works and extracts the tar in the current directory. But
this:
execute_process(
COMMAND ${CMAKE_COMMAND} -E
of the WORKING_DIRECTORY argument?
Use :
execute_process(... RESULT_VARIABLE rv)
message(rv='${rv}')
to see what the return value of CMake is.
Is there an error message when trying to extract the tar file?
-Original Message-
From: Saad Khattak saadrus...@gmail.com
To: CMake Mailing List
:
2013/4/2 Saad Khattak saadrus...@gmail.com
Hi,
If I have the following command:
execute_process(
COMMAND ${CMAKE_COMMAND} -E tar xzf mySDK.tar.gz
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
the extraction works and extracts the tar in the current directory
That prints the directory in the console:
Z:/engine/src/mySDK
But did not extract to it. Note that mySDK exists, and the tar is in the
'src' folder and I am able to extract in the 'src' folder properly.
- Saad
On Tue, Apr 2, 2013 at 1:58 AM, Eric Noulard eric.noul...@gmail.com wrote:
COMMAND
Hi,
Suppose I have two personal repositories: A and B. Repository B has a
dependency on repository A i.e. repository A builds multiple libraries and
repository B builds multiple libraries and executables. I can build 32-bit
and 64-bit libraries/executables for both by having a 'build' and
On Wed, Apr 3, 2013 at 2:08 AM, Eric Noulard eric.noul...@gmail.com wrote:
2013/4/3 Saad Khattak saadrus...@gmail.com
That prints the directory in the console:
Z:/engine/src/mySDK
But did not extract to it. Note that mySDK exists, and the tar is in the
'src' folder and I am able to extract
, Apr 3, 2013 at 7:44 AM, Saad Khattak saadrus...@gmail.comwrote:
Hi,
Suppose I have two personal repositories: A and B. Repository B has a
dependency on repository A i.e. repository A builds multiple libraries and
repository B builds multiple libraries and executables. I can build 32-bit
Hi,
I am having a hard time understanding some commands in CMake which by the
looks of it are vital for proper project deployment. One of the commands is
INSTALL and the other is EXPORT.
I have read the following page many times:
http://www.cmake.org/Wiki/CMake:Install_Commands. The article
Hi,
I am trying my best to understand CMake's install and export commands so
that separate projects are able to find libraries easily.
I am having a tremendously hard time understand what CMake is doing. After
'add_library()' where the library is called 'myLib' I called the following:
/vs10/debug/ ../build/vs10/release/ sorta... and just target
bin lib etc. it's just simpler
On Wed, Apr 3, 2013 at 7:06 PM, Saad Khattak saadrus...@gmail.com wrote:
Hi,
I am trying my best to understand CMake's install and export commands so
that separate projects are able to find
$pe$1...@ger.gmane.org
Content-Type: text/plain; charset=UTF-8; format=flowed
On 2013-04-03 16:16, Saad Khattak wrote:
I am having a hard time understanding some commands in CMake which by the
looks of it are vital for proper project deployment. One of the commands
is
INSTALL and the other
Hi,
Now that I have a project up and running with CMake generated native
project files, can I trigger a build with CMake as well? That is, a
cross-platform way to trigger a build on the project without the need for
me to call 'msbuild' on windows for example?
- Saad
--
Powered by
`--`
afterwards, so if you are using, for example, the Makefile generator, you
can build in parallel with `cmake --build . -- -j5`
On Tue, Apr 16, 2013 at 11:18 AM, Saad Khattak saadrus...@gmail.comwrote:
Hi,
Now that I have a project up and running with CMake generated native
project files, can I
Hi,
I currently have a CMake project with multiple sub-projects where
the sub-projects are libraries and executables. The project works on
windows and iOS (via XCode). One such sub-project is an executable that can
only be run on OSX and must be run after every build. This executable makes
a few
Hello,
I would like CMake to not set the following property in the project at all:
ARCHS = $(ARCHS_STANDARD)
That is, I would like this property to not even show up in the
*pbxproj*file (which can be found inside the generated
*xcodeproj* bundle. In fact, I would like it to be removed by CMake.
I have a solution with multiple projects including a CMake INSTALL project
for installing the binaries. With CMake Version 3.0 I am receiving the
following warning for each of my projects in the solution:
warning MSB8028: The intermediate directory (myProject.dir\Debug\)
contains files shared from
For future reference:
The solution is to delete your build folder and generate the projects
again. Not sure what is changed by CMake in 3.0 but VS does not like it
unless the build folder is cleaned.
On Wed, Sep 3, 2014 at 6:09 PM, Saad Khattak saadrus...@gmail.com wrote:
I have a solution
Once I have configured and generated a CMake project, is there a way to
extract that into a command? So, let's say I have configured and generated
a project using the CMake GUI. I am then able to extract
(somehow) the full configure/generate command which looks like this:
cmake -DOPTION_1=ON
the -D command
line options for the things you've touched in the cmake-gui program...
HTH,
David C.
On Sat, Nov 1, 2014 at 12:16 PM, Saad Khattak saadrus...@gmail.com
wrote:
Once I have configured and generated a CMake project, is there a way to
extract that into a command? So, let's say
Hello,
I have a project *ExternalLib* that uses CMake to build its libraries. I
then have my own project (separate from the external library) that needs to
include ExternalLib's headers and link with its libraries. ExternalLib does
not have a find_package module.
Since ExternalLib is also built
> Yes, that is what I do in my superbuilds. Generally I make is such that my
> project could be built without the superbuild, and the superbuild is just a
> convenience.
>
> On Sat, Jan 21, 2017 at 12:17 PM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
> >> One pos
static info anyway).
Am 8. Januar 2017 22:49:52 MEZ schrieb Saad Khattak <saadrus...@gmail.com>:
>Hello,
>
>I have an external project glfw that I added to my project like this:
>
>==
>include(ExternalProject)
>ExternalProject_Add(glfw
> GIT_REPOSITORY &qu
Konstantin Tokarev <annu...@yandex.ru>
wrote:
>
>
> 07.11.2016, 18:49, "Saad Khattak" <saadrus...@gmail.com>:
> > I am working on a plugin for Maya and it uses a customized version of
> Qt. Maya's SDK comes with everything to build Qt (headers, libraries a
6 AM Jakob van Bethlehem <jsvanbethle...@gmail.com>
wrote:
> Hej,
>
> On Mon, Nov 7, 2016 at 4:48 PM, Saad Khattak <saadrus...@gmail.com> wrote:
>
> I am working on a plugin for Maya and it uses a customized version of Qt.
> Maya's SDK comes with everything to build Qt
I am working on a plugin for Maya and it uses a customized version of Qt.
Maya's SDK comes with everything to build Qt (headers, libraries and
customized Qt tools such as moc.exe).
I have the following issues:
(1) With CMAKE_AUTOMOC set to ON, I am unable to figure out how to point
CMake to pick
discussion with LunarG.
Cheers,
Matthäus
Am 08.01.2017 um 14:36 schrieb Andreas Naumann:
> Hello,
> Am 08.01.2017 um 07:22 schrieb Saad Khattak:
>> Hello,
>>
>> When I run "find_package(VULKAN)" in a CMakeLists for a Visual Studio
>> 2015 32-bit pro
Hello,
This is a very strange behavior I am encountering. I am using CMake 3.7.1
with Visual Studio 2015. I have the following as part of a CMakeLists file:
find_library(glfw_LIB_D glfw3_d ${glfw_LIBRARIES})
find_library(glfw_LIBglfw3 ${glfw_LIBRARIES})
When I do "message(STATUS
Hello,
When I run "find_package(VULKAN)" in a CMakeLists for a Visual Studio 2015
32-bit project, the ${Vulkan_LIBRARY} and ${Vulkan_LIBRARIES} variables
both point to the "Bin" folder for the Vulkan installation instead of the
"Bin32" folder.
I looked at the FindVulkan.cmake module and even put
Hello,
I have an external project glfw that I added to my project like this:
==
include(ExternalProject)
ExternalProject_Add(glfw
GIT_REPOSITORY "https://github.com/glfw/glfw.git;
GIT_TAG "master"
SOURCE_DIR "${CMAKE_SOURCE_DIR}/dep/glfw"
CMAKE_ARGS -DGLFW_BUILD_DOCS=OFF
Hi,
I have an interface library and I am not sure how I would get CMake to
generate the usual -config.cmake file for the library so that I can
then use "find_package" on the interface library from an external project.
I am adding (and installing) the library like this:
add_library(myLib
Hi,
We have about a hundred projects that use CMake to do the compilation. Each
night, we do a clean build and CMake performs unnecessary compiler checks
for every single project:
-- The C compiler identification is MSVC 17.0.61030.0
-- The CXX compiler identification is MSVC 17.0.61030.0
--
Hi,
I have 4 configurations (2 for Debug and 2 for Release) and I would like to
install the libraries such that they are installed in the correct
directories.
Installing without worrying about configurations looks like this:
install(TARGETS ${LIB_NAME}
EXPORT ${LIB_NAME}Config
way to specify the property is to use command set_property which
> supports multiple values for a property:
>
> set_property(TARGET LibD PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES LibA
> LibB)
>
>
>
>
>
> *From: *CMake <cmake-boun...@cmake.org> on behalf of Saad K
;
set_target_properties(LibD
PROPERTIES
IMPORTED_LINK_INTERFACE_LIBRARIES "LibA;LibB" #cmake no longer
recognizes LibA and LibB as IMPORTED CMake libraries
)
Regards,
Saad
On Wed, Dec 13, 2017 at 4:32 PM Craig Scott <craig.sc...@crascit.com> wrote:
> On Thu, Dec 14, 2
Hi,
I have several imported libraries:
LibA
LibB
LibC
Where each imported library has been populated by (where ${LIB_NAME} is
either LibA, LibB or LibC):
add_library(${LIB_NAME} STATIC IMPORTED)
And each library has the properties IMPORT_LOCATION_${CONFIGURATION} set
properly:
Hi,
Let's say I have the following directory structure:
~/Repos/MyRepo/CMakeLists.txt
~/CMakeFiles/Foo.cmake
~/CMakeFiles/Bar.cmake
In the CMakeLists.txt I have the following command:
include(~/CMakeFiles/Foo.cmake)
And in Foo.cmake I have the following command:
include(Bar.cmake)
Turns out
Vrankar <domen.vran...@gmail.com>
wrote:
> 2017-12-16 0:18 GMT+01:00 Saad Khattak <saadrus...@gmail.com>:
>
>> Hi,
>>
>> I have 4 configurations (2 for Debug and 2 for Release) and I would like
>> to install the libraries such that they are installed in th
That was it, thanks Nils!
For future reference, after adding the test like Nils suggested, calling
"ctest" wouldn't work as it now needs your configuration:
ctest -C Debug
On Fri, Jan 5, 2018 at 11:16 AM Nils Gladitz <nilsglad...@gmail.com> wrote:
> On 05.01.2018 17:11,
Hi,
Suppose I have something like this:
add_executable(MyTest main.cpp)
set_target_properties(MyTest
PROPERTIES
DEBUG_POSTFIX _d
RELEASE_POSTFIX _r
)
add_test(RunTests MyTest) # where MyTest is the
I expect CMake to recognize that "MyTest" has executables that are named
"MyTest_d" and
at 10:28 AM J Decker <d3c...@gmail.com> wrote:
> maybehttps://cmake.org/cmake/help/v3.2/module/ExternalProject.html
>
> BUILD_ALWAYS 1No stamp file, build step always runs
>
> On Fri, Jan 12, 2018 at 7:41 PM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
>> H
Thank you Konstantin. get_target_properties(...) works very well.
On Sat, Jan 13, 2018 at 12:06 PM Konstantin Tokarev <annu...@yandex.ru>
wrote:
>
>
> 13.01.2018, 06:26, "Saad Khattak" <saadrus...@gmail.com>:
> > Hi,
> >
> > Say I find Li
Hi,
Say I find LibA using find_package(LibA) and I now have access to LibA_DIR,
which is the build folder of LibA. Is there a way I can query additional
variables, such as LibA's source directory, install directory etc. i.e.
variables that are defined by CMake when LibA was being generated/built
Hi,
Let's say I have several CMake enabled libraries that have their own
respective build directories and have been installed:
LibA
LibB (depends on A)
LibC
LibD (depends on LibC and LibA)
I then create a new executable project ProjExe that depends on LibD. Now, I
am working on LibA, LibB,
d step, build binaries are used as well as absolute paths so
> produced binaries can be used during build step (i.e. launching an
> executable produced) without requirements regarding paths settings (i.e.
> PATH or LD_LIBRARY_PATH).
>
>
>
>
>
> *From: *CMake <cmake-
Hi,
I would like find_package(MyLib) to link find the libraries found in the
INSTALL folder instead of the build folder.
Currently, when I do a find_package(MyLib) and then
target_link_libraries(target MyLib) the paths all point to MyLib's build
folder and not the folder where MyLib's
I have the following setup:
Superbuild
- ExternalProject_Add(a...)
- ExternalProject_Add(b...)
- ExternalProject_Add(c...)
- ExternalProject_Add(d...)
The SuperBuild is built from command line with some options e.g.
-DMY_OPTION=TRUE. I would like all these options to be passed to each
Thank you Don, that was it. Querying and storing the args before a call to
'project' and your loop and your conditional were the key.
On Wed, Jan 31, 2018 at 10:14 PM Don Hinton <hinto...@gmail.com> wrote:
> Hi Saad:
>
> On Wed, Jan 31, 2018 at 6:47 PM, Saad Khattak <sa
quot; PLATFORM_DEFINES ${PLATFORM_DEFINES} )
>
> add_definitions( ${PLATFORM_DEFINES} )
>
>
>
> On Wed, Jan 31, 2018 at 9:36 AM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
>> I have the following setup:
>> Superbuild
>>- ExternalProject_Add(a.
Hi,
I have a lot of projects with many dependencies. Support ProjE depends on
ProjD which in turn depends on ProjB and ProjC where ProjB depends on ProjA.
If ProjA, is updated, I would like some way to trigger the generate/build
(or just build, assuming the projects are already generated) ProjB,
Hi,
I have the following setup:
ImportedLib (sets location of library files and public include directories)
LibA (publicly includes ImporteLib with
target_link_libraries(...))
Exe (finds LibA and links against it)
Where ImportedLib uses
Hi,
I would like to know how to use the FetchContent properly so that I can
link against downloaded (CMake enabled) projects. I have looked at the
CMake docs, which although are quite thorough, almost always fail to list a
complete example which is incredibly crucial to get up and running
interspersed below.
>
>
> On Mon, Mar 12, 2018 at 11:02 AM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
>> Hi,
>>
>> I would like to know how to use the FetchContent properly so that I can
>> link against downloaded (CMake enabled) projects. I have looked
BINARY_DIR}) #can be case
insensitive
endif()
add_executable(testExe
main.cpp
)
message(STATUS "Catch include dir: ${catch2_SOURCE_DIR}/include")
target_link_libraries(testExe Catch) #name of library to link is case
sensitive!
``
O
Hi,
I am fetching and building SDL2 using FetchContent and then using
target_link_libraries(MyExe SDL2) in the hopes that the required include
directories and libraries will be added populated properly. The example
project can be found here:
https://github.com/samaursa/cmake_fetch_content_SDL2
Visual Studios with different
> runtime libraries.
>
> Cheers.
>
> On Tue, Apr 10, 2018 at 10:56 AM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
>> Hi,
>>
>> When find_package(LibA) sets the LibA_FOUND variable, is it possible to
>> know if the packag
Hi,
My project is setup in such a way that I perform a FetchContent 'only if'
my find_package fails.
This works very well until I start building different configurations. Let's
say I generate and build Debug for my project. My project tries to
find_package(LibA QUIET) and cannot find it. So, it
Thank you Craig.
>> Imported targets are definitely more preferable though
Can you please elaborate on this?
On Tue, Apr 10, 2018 at 10:23 AM Craig Scott <craig.sc...@crascit.com>
wrote:
>
> On Tue, Apr 10, 2018 at 11:07 PM, Saad Khattak <saadrus...@gmail.com>
&g
Hi,
I have many independent CMake projects and most projects have external
dependencies. Most of the projects have the same dependency e.g. Catch
testing library.
Each library uses FetchContent so that it can be built independently by
simply cloning its github repository, configuring and
Hi,
When find_package(LibA) sets the LibA_FOUND variable, is it possible to
know if the package found is the Debug or Release build (or both)? I have a
fairly complex build setup where I need to be able to distinguish if
find_package(LibA) found a Debug or Release build.
- Saad
--
Powered by
ike LibA_LIBRARIES and so
> on…). The documentation of the package, if any, generally describe how to
> use the package.
>
>
>
>
>
> *From: *CMake <cmake-boun...@cmake.org> on behalf of Saad Khattak <
> saadrus...@gmail.com>
> *Date: *Friday 13 April 2018 at 0
Hi,
I am successfully able to find a package using find_package(LibA) but I
cannot do a get_target_property on the package as I get the error:
get_target_property() called with non-existent target "LibA"
How do I go about the target properties for a package?
- Saad
--
Powered by
Hi,
I have many libraries and packages that are being linked using
target_link_libraries(...) where CMake takes care of the include
directories. There are cases where I get compile errors because I don't
know the exact include directories.
I thought perhaps I could get the include directories of
wrote:
> In general your options are to look at the command line or use
> cmake-server mode to query the code model. The full set of include
> directories is not known while configuring due to generator
> expressions expanding after the configure step.
>
> On Mon, Mar 26, 2018 at 9:45 P
u provide a small project example that can be used to demonstrate
> your problem? The specifics of how you are doing things may be important.
>
>
> On Sun, Mar 18, 2018 at 8:12 AM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
>> Hi,
>>
>> ExternalProj
confusion, please let me know.
On Mon, Mar 19, 2018 at 7:11 AM Craig Scott <craig.sc...@crascit.com> wrote:
> On Mon, Mar 19, 2018 at 8:25 AM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
>> Thank you for the clarification Craig.
>>
>> >> If
Hi,
ExternalProject_Add builds, generates and installs and thus any generator
expressions used will be expanded by the time another library uses it.
For example, if I add a library LibA using ExternalProject_Add, I can then
query the target property INTERFACE_INCLUDE_DIRECTORIES and get the
2018 at 3:44 AM, Saad Khattak <saadrus...@gmail.com>
> wrote:
>
>> Absolutely. Please find the example project here:
>> https://github.com/samaursa/cmake_fetch_content_and_generator_expressions
>>
>>
>> The repository README also includes the output fro
69 matches
Mail list logo