I'm having a play around with different versions of findCEGUI.cmake
Today I pulled up-to-date version from the repo.
Looking at the code I have to say I was impressed with the quality & effort put in to this.
I create a project for Ogre1.9 + CEGUI 0.8.4. Compiler is MS Visual Studio 2015. Windows 7 OS. CMake correctly picks up most relevant .dll and .lib files and settings for Ogre, OIS, CEGUI, even some items I previously had to hard code filenames for. Great.
However I still find myself having to hardcode for CEGUI dependencies:
Code: Select all
install(FILES ${OGRE_BINARY_REL}
${OGRE_Overlay_BINARY_REL}
${OGRE_RenderSystem_Direct3D9_REL}
${OGRE_RenderSystem_Direct3D11_REL}
${OGRE_RenderSystem_GL_REL}
${OIS_BINARY_REL}
${CEGUI_BINARY_REL}
${CEGUI_OgreRenderer_BINARY_REL}
C:/lib_msvc14/ceguideps_0_8/dependencies/bin/expat.dll
C:/lib_msvc14/ceguideps_0_8/dependencies/bin/freetype.dll
C:/lib_msvc14/ceguideps_0_8/dependencies/bin/pcre.dll
DESTINATION bin
CONFIGURATIONS Release RelWithDebInfo
)
And also boost system .dll (the datetime and thread are static .lib and work ok):
Code: Select all
install(FILES ${Boost_DATE_TIME_LIBRARY_RELEASE}
${Boost_THREAD_LIBRARY_RELEASE}
${Boost_LIBRARY_DIRS}/boost_system-vc140-mt-1_59.dll
DESTINATION bin
CONFIGURATIONS Release RelWithDebInfo
)
As far as I can tell, there is no CMake variable populated with these info, so may I ask is there a way to avoid having to hardcode?
TIA