Re: [CMake] organizing includes statements

2015-12-10 Thread Owen Alanzo Hogarth
ubdirectory() ? > > On Thu, Dec 10, 2015 at 1:48 AM, Owen Alanzo Hogarth > <gurenc...@gmail.com> wrote: > > my main CMakeLists.txt file already has a few directives that move the > libs > > to an output folder so the binaries go to /bin while static and shar

Re: [CMake] organizing includes statements

2015-12-10 Thread Owen Alanzo Hogarth
> > Sorry to jump into the discussion, but what you're talking is > something I was thinking of just recently... > > I think the choice between this: > > > On Thu, Dec 10, 2015 at 3:48 PM, Owen Alanzo Hogarth > <gurenc...@gmail.com> wrote: > > set(CMAKE_ARCHIVE_O

[CMake] organizing includes statements

2015-12-09 Thread Owen Alanzo Hogarth
hi I am building a shared library project that's composed of many smaller shared library files. Here's the main shared library project and a list of all the sub projects. SET(HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/headers/main_lib.h) SET(SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/main_lib.c)

Re: [CMake] organizing includes statements

2015-12-09 Thread Owen Alanzo Hogarth
e > able to find that one directory. (Or if you export CMake’s targets, the > lib1/2 imported targets will know that their header files are in that > directory.) > > Cheers, > Attila > > > On Dec 10, 2015, at 12:07 AM, Owen Alanzo Hogarth <gurenc...@gmail.com> > wrote:

[CMake] adding gprof to cmake project

2015-11-29 Thread Owen Alanzo Hogarth
I have a project with many libs and one executable. I read this email exchange: https://cmake.org/pipermail/cmake/2009-December/033979.html on adding linker flags but this was from around 2009 and things most likely have changed a lot since then. in my executable my cmakelists.txt looks like

[CMake] find___.cmake module

2015-11-08 Thread Owen Alanzo Hogarth
HI I am having some issue getting my findSDL2_image.cmake module to work. I moved to linux and the strict character case is causing me a lot of trouble. Here is the error when running the cmake build script Argument not separated from preceding token by whitespace. This warning is for

[CMake] find module configuration not found

2015-11-03 Thread Owen Alanzo Hogarth
I just ran into some difficulties. I migrated a development system to debian 8. I had a project on mac os x that built w/ no problems now I am running my cmake but I get this error: CMake Error at CMakeLists.txt:4 (FIND_PACKAGE): By not providing "FindOPENGL.cmake" in CMAKE_MODULE_PATH this

Re: [CMake] find module configuration not found

2015-11-03 Thread Owen Alanzo Hogarth
> case-sensitive one such as normal Linux filesystems. > > Petr > > On Tue, Nov 3, 2015 at 2:11 PM, Owen Alanzo Hogarth <gurenc...@gmail.com> > wrote: > >> I just ran into some difficulties. >> >> I migrated a development system to debian 8. >>

Re: [CMake] getting paths of header files

2015-10-19 Thread Owen Alanzo Hogarth
//Use rs/blubee/SDL/project/build/lib/libmatrix4_scalar.dylib'. Stop. make[1]: *** [source/core_math/matrix4_scalar/CMakeFiles/matrix4_scalar.dir/all] Error 2 make: *** [all] Error 2 On Mon, Oct 19, 2015 at 5:58 AM, Owen Alanzo Hogarth <gurenc...@gmail.com> wrote: > I am having som

Re: [CMake] linking hared libraries

2015-10-19 Thread Owen Alanzo Hogarth
project()' command twice. AFAIK you're supposed to use this command exactly once, to set the properties of the entire project. Using it multiple times causes undefined behaviour, and may very well be the cause for what you're seeing Sincerely, Jakob On Mon, Oct 19, 2015 at 5:43 PM, Owen Alanzo Hoga

[CMake] linking hared libraries

2015-10-19 Thread Owen Alanzo Hogarth
Hi guys Can I get some help with this question I have. I did a really thorough writeup here on SO: http://stackoverflow.com/questions/33209659/cmake-no-rule-to-make-target-for-internal-shared-library?noredirect=1#comment54224377_33209659 -- Powered by www.kitware.com Please keep messages

Re: [CMake] linking hared libraries

2015-10-19 Thread Owen Alanzo Hogarth
-library?noredirect=1#comment54229598_33209659 On Mon, Oct 19, 2015 at 9:48 PM, Raymond Wan <rwan.w...@gmail.com> wrote: > Hi Owen, > > > On Mon, Oct 19, 2015 at 8:43 PM, Owen Alanzo Hogarth > <gurenc...@gmail.com> wrote: > > Also you said the PROJECT() should on

Re: [CMake] linking hared libraries

2015-10-19 Thread Owen Alanzo Hogarth
files. $<TARGET_PROPERTY:vector3_scalar,INCLUDE_DIRECTORIES> On Mon, Oct 19, 2015 at 8:43 PM, Owen Alanzo Hogarth <gurenc...@gmail.com> wrote: > You made a few points that I have not seen before specifically using > $<TARGET_PROPERTY:vector3_scala

Re: [CMake] providing host binary and target library cmake-package when cross compiling

2015-10-19 Thread Owen Alanzo Hogarth
This is the entire project as it stands right now. I have tried changing from using relative to more absolute directory names in my project but I still get the same build errors. This pastebin has all the relevant code: http://pastebin.com/BnVTnegP Anyone can see anything wrong with this? On

Re: [CMake] providing host binary and target library cmake-package when cross compiling

2015-10-19 Thread Owen Alanzo Hogarth
. This is the previous link to the cmake folder structure and cmakelists.txt files: http://pastebin.com/BnVTnegP On Tue, Oct 20, 2015 at 12:33 AM, Hendrik Sattler <p...@hendrik-sattler.de> wrote: > > > Am 19. Oktober 2015 17:33:55 MESZ, schrieb Owen Alanzo Hogarth < > gurenc...@gmail.com>

[CMake] getting paths of header files

2015-10-18 Thread Owen Alanzo Hogarth
I am having some trouble with my cmake build. I recently redesigned the physical layout of my files so that it'll be a bit easier to maintain in the long run. I have my project structure setup like this. MAIN_PROJECT/ project/main.c # this is the executable resources/...# a folder filled

[CMake] setting up a library with cmake

2015-08-13 Thread Owen Alanzo Hogarth
I initially setup a project like this: PROJECT/ .../build/ .../cmake_modules/ .../resources/ .../source/ -- subfolders under sources are shared libs .../source/components/ .../source/core_math/ .../source/ren_opengl/ .../source/utils/ .../source/main.c -- main() and

[CMake] passing a list of files from c source code to cmake

2015-08-05 Thread Owen Alanzo Hogarth
I know it's possible to send variables into your c source code from the cmake tutorials where you set the version. let's say in your c source code you access some resource files that are located in your source tree under a resources folder. I can put those in some type of array in my c source

[CMake] cmake output files and different platforms.

2015-08-04 Thread Owen Alanzo Hogarth
I am having a bit of trouble getting this sorted out. I set set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) in one of my cmakelists.txt file and it works almost as expected. If I use the terminal to build everything goes where it needs to and then I can reference the relative

[CMake] opening files relative to cmake build directory

2015-07-12 Thread Owen Alanzo Hogarth
I have a little project that's setup like this project main.c build resources source .../module1 .../module2 .../etc main.c loads dynamic libs from under the source folder. I am trying to open up a file using c fopen I create a function to get the base resource path which returns:

[CMake] cmake linking errors in simple project

2015-07-06 Thread Owen Alanzo Hogarth
I created this simple project but I am having linking errors. Everything builds correctly but when I try to add my lib to my main.c cmake complains about linking errors. Here's what the project looks like: http://pastebin.com/22bCsuiE if i #include time_utils.h in my main.c I get this error:

[CMake] CMake fails on linking.

2015-07-02 Thread Owen Alanzo Hogarth
Hi guys I wrote up this post on stackoverflow can I get some help sorting out why this project isn't linking properly? https://stackoverflow.com/questions/31186399/cmake-linking-errors Best -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] A little help please?

2015-06-25 Thread Owen Alanzo Hogarth
I wrote this post on SO and hoping to get some help sorting this out. Please help with this build setup and linking. http://stackoverflow.com/questions/31058688/cmake-not-properly-linking-files-after-successful-build -- Powered by www.kitware.com Please keep messages on-topic and check the

[CMake] A little help with cmake and external libraries

2015-06-24 Thread Owen Alanzo Hogarth
Hi ladies and gentlemen I've just started using cmake a week or so ago but I am having some difficulties getting cmake to find external libraries. I am not new to programming just new to cmake. I am making a very simple project with a structure like this project ...cmakelists.txt project/source