mirror of
https://github.com/H-uru/korman.git
synced 2025-07-14 02:27:36 -04:00
Merge pull request #50 from dpogue/bumpmaps
WIP: Normal Maps/Bumpmapping
This commit is contained in:
@ -5,10 +5,13 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
|
||||
# Stolen shamelessly from PyHSPlasma
|
||||
find_package(PythonLibs REQUIRED)
|
||||
find_package(PythonInterp "${PYTHONLIBS_VERSION_STRING}" REQUIRED)
|
||||
# Use only the major.minor version -- no patch, no +, etc
|
||||
STRING(REGEX REPLACE "([0-9]\\.[0-9])[0-9.+]*" "\\1" PYTHONLIBS_VERSION_STRING_FILTERED "${PYTHONLIBS_VERSION_STRING}")
|
||||
find_package(PythonInterp "${PYTHONLIBS_VERSION_STRING_FILTERED}" REQUIRED)
|
||||
# make sure the versions match
|
||||
if (NOT "${PYTHONLIBS_VERSION_STRING}" STREQUAL "${PYTHON_VERSION_STRING}")
|
||||
message(FATAL_ERROR "Versions of Python libraries (${PYTHONLIBS_VERSION_STRING}) and Python interpreter (${PYTHON_VERSION_STRING}) do not match. Please configure the paths manually.")
|
||||
STRING(REGEX REPLACE "([0-9]\\.[0-9])[0-9.+]*" "\\1" PYTHON_VERSION_STRING_FILTERED "${PYTHON_VERSION_STRING}")
|
||||
if (NOT "${PYTHONLIBS_VERSION_STRING_FILTERED}" STREQUAL "${PYTHON_VERSION_STRING_FILTERED}")
|
||||
message(FATAL_ERROR "Versions of Python libraries (${PYTHONLIBS_VERSION_STRING_FILTERED}) and Python interpreter (${PYTHON_VERSION_STRING_FILTERED}) do not match. Please configure the paths manually.")
|
||||
endif()
|
||||
|
||||
find_package(HSPlasma REQUIRED)
|
||||
@ -20,6 +23,7 @@ find_package(Vorbis REQUIRED)
|
||||
# Da files
|
||||
set(korlib_HEADERS
|
||||
buffer.h
|
||||
bumpmap.h
|
||||
korlib.h
|
||||
sound.h
|
||||
texture.h
|
||||
@ -27,6 +31,7 @@ set(korlib_HEADERS
|
||||
|
||||
set(korlib_SOURCES
|
||||
buffer.cpp
|
||||
bumpmap.cpp
|
||||
module.cpp
|
||||
sound.cpp
|
||||
texture.cpp
|
||||
@ -40,6 +45,7 @@ include_directories(${STRING_THEORY_INCLUDE_DIRS})
|
||||
include_directories(${Vorbis_INCLUDE_DIR})
|
||||
|
||||
add_library(_korlib SHARED ${korlib_HEADERS} ${korlib_SOURCES})
|
||||
set_target_properties(_korlib PROPERTIES PREFIX "")
|
||||
if(NOT WIN32)
|
||||
set_target_properties(_korlib PROPERTIES SUFFIX ".so")
|
||||
else()
|
||||
|
Reference in New Issue
Block a user