Re: [CMake] Troubles with include_directories

2019-03-10 Thread workbe...@gmx.at
I talked a long time on irc.freenode.org #cmake channel and got told everything you told me and more, i'm now aware of much more knowledge than before thanks to that channel. Thanks for your late answer anyway. best regards! On 10.03.19 16:09, Eric Noulard wrote: > > > Le sam. 9 mars 2019 à 08:4

Re: [CMake] Troubles with include_directories

2019-03-10 Thread Eric Noulard
Le sam. 9 mars 2019 à 08:44, workbe...@gmx.at a écrit : > Hi everyone, > > i've a project setup that looks like this: > > > abc.h > > def.h > > and all my other .cpp and .h files are in the folder intern. Now my > CMakeLists.txt looks like this: > > cmake_minimum_required(VERSION 3.7) > project(B

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
I finally got it working, for other who might have the same problem: You just have to use ExternalProject_Add(ftgl-dl ... ) add_executable(Test01 ${SRC}) add_dependencies(Test01 ftgl-dl) That all! Happy coding! best regards! On 10.03.19 13:20, workbe...@gmx.at wrote: > > I got the

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
I got the problem solved again, but now i'm stuck... now i've the following: add_library(glad STATIC IMPORTED) set_target_properties(glad PROPERTIES IMPORTED_LOCATION ${LIB_DIR}/glad/lib/libglad.a) add_library(glfw3 STATIC IMPORTED) set_target_properties(glfw3 PROPERTIES IMPORTED_LOCATION ${LIB_

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
I came a step forward, now it looks like this: include(ExternalProject) ExternalProject_Add(glfw3     PREFIX ${CMAKE_BINARY_DIR}/glfw-log     GIT_REPOSITORY https://github.com/glfw/glfw.git     GIT_TAG 3.2.1     SOURCE_DIR ${CMAKE_BINARY_DIR}/glfw     UPDATE_COMMAND ""     PATCH_COMMAND ""     INS

Re: [CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
Now i've managed to create the right INSTALL_COMMAND but i don't know how to link with my executable. i tried add_executable(MyApp ${src}) target_link_libraries(MyApp STATIC GLFW GLAD) and i get the following error message: CMake Error at CMakeLists.txt:96 (target_link_libraries):   Target "LIB

[CMake] Question about INSTALL_COMMAND for ExternalProject_Add()

2019-03-10 Thread workbe...@gmx.at
Hi everyone, i've managed to use ExternalProject_Add to install GLFW but i have troubles with glad... Here is my code for GLFW wich is working: include(ExternalProject) ExternalProject_Add(GLFW     PREFIX ${LIBDIR}/${CMAKE_BUILD_TYPE}/glfw-log     GIT_REPOSITORY https://github.com/glfw/glfw.git