-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "kazbase"] | ||
path = kazbase | ||
url = https://Kazade@github.com/Kazade/kazbase.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FIND_PATH( KAZMATH_INCLUDE_DIRS kazmath/vec3.h /usr/include /usr/local/include $ENV{INCLUDE} ) | ||
FIND_LIBRARY( KAZMATH_LIBRARIES NAMES kazmath PATHS /usr/lib /usr/local/lib ) | ||
|
||
IF(KAZMATH_INCLUDE_DIRS) | ||
MESSAGE(STATUS "Found Kazmath include dir: ${KAZMATH_INCLUDE_DIRS}") | ||
ELSE(KAZMATH_INCLUDE_DIRS) | ||
MESSAGE(STATUS "Could NOT find Kazmath headers.") | ||
ENDIF(KAZMATH_INCLUDE_DIRS) | ||
|
||
IF(KAZMATH_LIBRARIES) | ||
MESSAGE(STATUS "Found Kazmath library: ${KAZMATH_LIBRARIES}") | ||
ELSE(KAZMATH_LIBRARIES) | ||
MESSAGE(STATUS "Could NOT find Kazmath library.") | ||
ENDIF(KAZMATH_LIBRARIES) | ||
|
||
IF(KAZMATH_INCLUDE_DIRS AND KAZMATH_LIBRARIES) | ||
SET(KAZMATH_FOUND "YES") | ||
ELSE(KAZMATH_INCLUDE_DIRS AND KAZMATH_LIBRARIES) | ||
SET(KAZMATH_FOUND "NO") | ||
IF(KAZMATH_FIND_REQUIRED) | ||
MESSAGE(FATAL_ERROR "Could not find Kazmath. Please install Kazmath (http://launchpad.net/kazmath)") | ||
ENDIF(KAZMATH_FIND_REQUIRED) | ||
ENDIF(KAZMATH_INCLUDE_DIRS AND KAZMATH_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FILE(GLOB_RECURSE KGLT_FILES *.cpp) | ||
FILE(GLOB_RECURSE KAZBASE_FILES ../kazbase/*.cpp) | ||
FILE(GLOB_RECURSE GLEE_FILES ../glee/*.c) | ||
|
||
ADD_LIBRARY(kglt STATIC ${KGLT_FILES} ${KAZBASE_FILES} ${GLEE_FILES}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
LINK_LIBRARIES( | ||
kglt | ||
${KAZMATH_LIBRARIES} | ||
) | ||
|
||
ADD_EXECUTABLE(sample sample.cpp) | ||
ADD_EXECUTABLE(q2_sample q2bsp_sample.cpp) |