Horde3D

Next-Generation Graphics Engine
It is currently 01.11.2024, 00:28

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 23.07.2009, 06:23 
Offline

Joined: 15.07.2009, 13:45
Posts: 8
Hello,

I was searching for a FindHorde3d.cmake file - A CMake module that provides me with the variables to successfully use horde3d in my project, like include dirs, library dirs, libraries.

I haven’t found any sofar.

Do you know if there is such a cmake module available?

--Marenz


Top
 Profile  
Reply with quote  
PostPosted: 23.07.2009, 07:50 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Not sure if I understood you question. There are CMakeLists.txt files for Horde3D that let you compile the library itself. After compiling it, you need the Header file(s) under Horde3D\Bindings\C++ to use it in your project. Depending on what OS and compiler you are using you then have to link against the .lib or .so file that will be placed under the Binaries directory.


Top
 Profile  
Reply with quote  
PostPosted: 23.07.2009, 08:54 
Offline

Joined: 15.07.2009, 13:45
Posts: 8
I know that it uses the CMake buildsystem, but thats not what I meant.

In CMake you can use find_package(Name ...options...) to let cmake know that your project wants this third-party dependency. After this call, a cmake module will be called that tries to find the specified library and its headers on the current platform. this module is usually a file called FindLibraryname.cmake. CMake ships a lot of them, but for some more rarley used libraries you have to look for the module somewhere else or write it yourself and ship it with your project.

Just as an example how this looks for the SFML library:
Code:
find_package(SFML REQUIRED)
include_directories(${SFML_INCLUDE_DIR})
add_executable(test main.cpp)
target_link_libraries(test ${SFML_LIBRARY})


This searches the main module dir of cmake for FindSFML.cmake, if not found it searches the user-specified modules dir(where your project would ship own modules) and searches there. This module then searches the platform for the needed information. If it doesnt detect the library the user can still tell it manually where to look for in the configuration.

Well, and my question is, does there exist such a FindHorde3d.cmake Module?


--Marenz


Top
 Profile  
Reply with quote  
PostPosted: 23.07.2009, 12:22 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
I am afraid that no one has written such a module yet. It is a bit tricky to implement reliably, since Horde doesn't have a fixed installation location on most platforms, but if you feel like implementing it, there will probably be many happy people :)

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group