Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
The Openvibe Group
extras
Commits
cd3973b4
Commit
cd3973b4
authored
Sep 22, 2015
by
nfoy
Committed by
Serrière Guillaume
Sep 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement FindThirdLibraryCEGUI_Check.cmake
parent
febf9e70
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
3 deletions
+44
-3
applications/demos/ssvep-mind-shooter/CMakeLists.txt
applications/demos/ssvep-mind-shooter/CMakeLists.txt
+3
-3
cmake-modules/FindThirdPartyCEGUI_Check.cmake
cmake-modules/FindThirdPartyCEGUI_Check.cmake
+41
-0
No files found.
applications/demos/ssvep-mind-shooter/CMakeLists.txt
View file @
cd3973b4
...
...
@@ -11,11 +11,11 @@ IF(NOT PATH_VRPN)
RETURN
()
ENDIF
(
NOT PATH_VRPN
)
INCLUDE
(
"FindThirdPartyCEGUI"
)
IF
(
NOT
PATH_
CEGUI
)
INCLUDE
(
"FindThirdPartyCEGUI
_Check
"
)
IF
(
NOT CEGUI
_FOUND
)
MESSAGE
(
STATUS
" --> Not building
${
PROJECT_NAME
}
"
)
RETURN
()
ENDIF
(
NOT
PATH_
CEGUI
)
ENDIF
(
NOT CEGUI
_FOUND
)
FILE
(
GLOB_RECURSE source_files src/*.cpp src/*.h src/*.inl
)
ADD_EXECUTABLE
(
${
PROJECT_NAME
}
${
source_files
}
)
...
...
cmake-modules/FindThirdPartyCEGUI_Check.cmake
0 → 100644
View file @
cd3973b4
# ---------------------------------
# Finds CEGUI toolkit
#
# Sets CEGUI_FOUND
# Sets CEGUI_LIBRARIES
# Sets CEGUI_LIBRARY_DIRS
# Sets CEGUI_LDFLAGS
# Sets CEGUI_LDFLAGS_OTHERS
# Sets CEGUI_INCLUDE_DIRS
# Sets CEGUI_CFLAGS
# Sets CEGUI_CFLAGS_OTHERS
# ---------------------------------
IF
(
OV_DISABLE_OGRE
)
MESSAGE
(
STATUS
" SKIPPED Ogre3D/OIS (CEGUI), disabled, no 3D ..."
)
RETURN
()
ENDIF
(
OV_DISABLE_OGRE
)
IF
(
WIN32
)
FIND_PATH
(
PATH_CEGUI cegui/include/CEGUI.h PATHS
${
OV_CUSTOM_DEPENDENCIES_PATH
}
/cegui
)
IF
(
PATH_CEGUI
)
SET
(
CEGUI_FOUND TRUE
)
SET
(
OgreCEGUIRenderer_FOUND TRUE
)
SET
(
CEGUI_INCLUDE_DIRS
${
PATH_CEGUI
}
/cegui/include
)
SET
(
CEGUI_LIBRARIES_DEBUG CEGUIBase_d CEGUIOgreRenderer_d
)
SET
(
CEGUI_LIBRARIES_RELEASE CEGUIBase CEGUIOgreRenderer
)
SET
(
CEGUI_LIBRARY_DIRS
${
PATH_CEGUI
}
/lib
)
ENDIF
(
PATH_CEGUI
)
ENDIF
(
WIN32
)
IF
(
UNIX
)
INCLUDE
(
"FindThirdPartyPkgConfig"
)
pkg_check_modules
(
CEGUI CEGUI
)
pkg_check_modules
(
OgreCEGUIRenderer CEGUI-OGRE
)
ENDIF
(
UNIX
)
IF
(
CEGUI_FOUND AND OgreCEGUIRenderer_FOUND
)
MESSAGE
(
STATUS
" Found CEGUI/OgreCEGUIRenderer..."
)
ELSE
(
CEGUI_FOUND AND OgreCEGUIRenderer_FOUND
)
MESSAGE
(
STATUS
" FAILED to find CEGUI/OgreCEGUIRenderer..."
)
ENDIF
(
CEGUI_FOUND AND OgreCEGUIRenderer_FOUND
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment