mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +02:00
cmake cleanup
This commit is contained in:
parent
bfcc78c57d
commit
b1d1cfee44
1 changed files with 1 additions and 14 deletions
|
@ -10,7 +10,7 @@ if (APPLE)
|
||||||
# link in required OS X frameworks and include the right GL headers
|
# link in required OS X frameworks and include the right GL headers
|
||||||
find_library(OpenGL OpenGL)
|
find_library(OpenGL OpenGL)
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} ${OpenGL})
|
#target_link_libraries(${TARGET_NAME} ${OpenGL})
|
||||||
|
|
||||||
else (APPLE)
|
else (APPLE)
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
@ -19,8 +19,6 @@ else (APPLE)
|
||||||
include_directories(SYSTEM "${OPENGL_INCLUDE_DIR}")
|
include_directories(SYSTEM "${OPENGL_INCLUDE_DIR}")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
#target_link_libraries(${TARGET_NAME} "${OPENGL_LIBRARY}")
|
|
||||||
|
|
||||||
# link target to external libraries
|
# link target to external libraries
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
find_package(GLEW REQUIRED)
|
find_package(GLEW REQUIRED)
|
||||||
|
@ -28,17 +26,6 @@ else (APPLE)
|
||||||
|
|
||||||
# we're using static GLEW, so define GLEW_STATIC
|
# we're using static GLEW, so define GLEW_STATIC
|
||||||
add_definitions(-DGLEW_STATIC)
|
add_definitions(-DGLEW_STATIC)
|
||||||
|
|
||||||
#target_link_libraries(${TARGET_NAME} "${GLEW_LIBRARIES}" "${NSIGHT_LIBRARIES}" opengl32.lib)
|
|
||||||
|
|
||||||
# try to find the Nsight package and add it to the build if we find it
|
|
||||||
#find_package(NSIGHT)
|
|
||||||
#if (NSIGHT_FOUND)
|
|
||||||
# include_directories(${NSIGHT_INCLUDE_DIRS})
|
|
||||||
# add_definitions(-DNSIGHT_FOUND)
|
|
||||||
# #target_link_libraries(${TARGET_NAME} "${NSIGHT_LIBRARIES}")
|
|
||||||
#endif ()
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue