Re: [CMake] using macros

2016-01-15 Thread Owen Hogarth II
> right? > > Petr > > On Thu, Jan 14, 2016 at 8:25 AM, Owen Hogarth II <gurenc...@gmail.com> > wrote: > >> I am trying to use a macro to enable c99 in some of my cmake modules. >> >> In the top level cmake file I add this macro >> >> macro(use_c99

[CMake] using macros

2016-01-13 Thread Owen Hogarth II
I am trying to use a macro to enable c99 in some of my cmake modules. In the top level cmake file I add this macro macro(use_c99) if (CMAKE_VERSION VERSION_LESS "3.1") if (CMAKE_C_COMPILER_ID STREQUAL "GNU") set (CMAKE_C_FLAGS "--std=gnu99 ${CMAKE_C_FLAGS}") endif () else ()

Re: [CMake] debugging symbols in project

2016-01-02 Thread Owen Hogarth II
t. > > Have you tried passing "-DCMAKE_BUILD_TYPE=Debug" to CMake when invoking > it? > > It is also possible to set this option when using "cmake-gui". > > Many regards, > Rainer > > > On Sat, Jan 2, 2016 at 9:23 PM, Owen Hogarth II <gurenc...

[CMake] debugging symbols in project

2016-01-02 Thread Owen Hogarth II
I have a simple cmake project that I am trying to test with gdb but I am having trouble. GDB is reporting now debugging symbols. CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR) PROJECT(core_e) SET(CMAKE_MACOSX_RPATH 1) set(CMAKE_C_FLAGS "-g -Wall") FIND_PACKAGE(OpenGL REQUIRED)

[CMake] cross platform way to unzip

2015-12-22 Thread Owen Hogarth II
Hi Is there a standardized way to unzip a file with cmake that can work on all of cmake's target platforms? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake

Re: [CMake] build order

2015-12-19 Thread Owen Hogarth II
, but certainly not easy. > > > David > > > > On Dec 18, 2015, at 3:29 PM, Owen Hogarth II <gurenc...@gmail.com> > wrote: > > > > If you download, compile and install a cmake project through external > project > > > > How can I make sure th

[CMake] build order

2015-12-18 Thread Owen Hogarth II
If you download, compile and install a cmake project through external project How can I make sure that the external project is built before something that depends on that external project? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

Re: [CMake] external project add and configure

2015-12-15 Thread Owen Hogarth II
and can be solved at the same time. I would like to add this to my external projects, their include directories are located in TARGET_INCLUDE_DIRECTORIES(sdl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include) On Tue, Dec 15, 2015 at 8:47 PM, Owen Hogarth II <gurenc...@gmail.com> wrote: > I

[CMake] adding external project

2015-12-15 Thread Owen Hogarth II
I have been reading this: https://cmake.org/cmake/help/v3.0/module/ExternalProject.html trying to add sdl external project but I am having issues. I created a new cmake project to test. I already downloaded the sdl library and can build it correctly by manually calling cmake commands but this

Re: [CMake] adding external project

2015-12-15 Thread Owen Hogarth II
holas11bra...@gmail.com > wrote: > What's the word "clone" doing in there? That should be a URL, not > command parameters. > > On Tue, Dec 15, 2015 at 2:01 AM, Owen Hogarth II <gurenc...@gmail.com> > wrote: > > I have been reading this: > > https://cmake.

[CMake] external project add and configure

2015-12-15 Thread Owen Hogarth II
I was able to build the external project that required cmake like this: include(ExternalProject) ExternalProject_Add(sdl HG_REPOSITORY http://hg.libsdl.org/SDL UPDATE_COMMAND hg pull -u http://hg.libsdl.org/SDL CMAKE_ARGS -DSDL_STATIC:BOOL=FALSE

Re: [CMake] external project add and configure

2015-12-15 Thread Owen Hogarth II
with ExternalProject_Add? On Wed, Dec 16, 2015 at 12:53 AM, Owen Hogarth II <gurenc...@gmail.com> wrote: > In response to myself I've figure it out with using add_step function and > calling some commands. > > Full source for what's working building both external libraries. > >

Re: [CMake] what options

2015-12-14 Thread Owen Hogarth II
things) > to find external projects during the configuration. > > Cheers, > Attila > > > On 13 Dec 2015, at 21:20, Owen Hogarth II <gurenc...@gmail.com> wrote: > > > > wow, that's excellent cmake -LAH lead me to the variable that I was > looking fo

[CMake] what options

2015-12-13 Thread Owen Hogarth II
If you have a cmake project, what's the way to see what type of configuration options are available? For example I know that I can pass -DCMAKE_PREFIX_PATH the set where the project will be installed. Sometimes project creators add other things, such as building static or share libraries, SSE,