Merge pull request #274 from StefanBruens/fix_build_errors
Fix some build errors
This commit is contained in:
commit
2075d740c9
2
extern/EtcLib/CMakeLists.txt
vendored
2
extern/EtcLib/CMakeLists.txt
vendored
@ -21,4 +21,4 @@ file(GLOB SOURCES
|
|||||||
${PROJECT_SOURCE_DIR}/EtcCodec/*.h
|
${PROJECT_SOURCE_DIR}/EtcCodec/*.h
|
||||||
${PROJECT_SOURCE_DIR}/Etc/*.cpp
|
${PROJECT_SOURCE_DIR}/Etc/*.cpp
|
||||||
${PROJECT_SOURCE_DIR}/EtcCodec/*.cpp)
|
${PROJECT_SOURCE_DIR}/EtcCodec/*.cpp)
|
||||||
ADD_LIBRARY(EtcLib ${SOURCES})
|
ADD_LIBRARY(EtcLib STATIC ${SOURCES})
|
||||||
|
@ -23,6 +23,8 @@ SET(BC7_SRCS
|
|||||||
|
|
||||||
ADD_LIBRARY(bc7 STATIC ${BC7_SRCS})
|
ADD_LIBRARY(bc7 STATIC ${BC7_SRCS})
|
||||||
|
|
||||||
|
TARGET_LINK_LIBRARIES(bc7 nvmath)
|
||||||
|
|
||||||
IF(NOT WIN32)
|
IF(NOT WIN32)
|
||||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
SET_TARGET_PROPERTIES(bc7 PROPERTIES COMPILE_FLAGS -fPIC)
|
SET_TARGET_PROPERTIES(bc7 PROPERTIES COMPILE_FLAGS -fPIC)
|
||||||
|
@ -17,7 +17,7 @@ TARGET_LINK_LIBRARIES(nvassemble nvcore nvimage nvtt bc6h nvmath)
|
|||||||
ADD_EXECUTABLE(nvzoom resize.cpp cmdline.h)
|
ADD_EXECUTABLE(nvzoom resize.cpp cmdline.h)
|
||||||
TARGET_LINK_LIBRARIES(nvzoom nvcore nvimage nvtt bc6h nvmath)
|
TARGET_LINK_LIBRARIES(nvzoom nvcore nvimage nvtt bc6h nvmath)
|
||||||
|
|
||||||
SET(TOOLS nvcompress nvdecompress nvddsinfo nvassemble nvzoom)
|
SET(TOOLS nvcompress nvdecompress nvddsinfo nvimgdiff nvassemble nvzoom)
|
||||||
|
|
||||||
IF(GLEW_FOUND AND GLUT_FOUND AND OPENGL_FOUND)
|
IF(GLEW_FOUND AND GLUT_FOUND AND OPENGL_FOUND)
|
||||||
INCLUDE_DIRECTORIES(${GLEW_INCLUDE_PATH} ${GLUT_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${GLEW_INCLUDE_PATH} ${GLUT_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR})
|
||||||
|
Loading…
Reference in New Issue
Block a user