-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (59 loc) · 2.58 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
### LIBRARIES ########################################
if (UNIX)
set(OpenGL_GL_PREFERENCE "GLVND")
endif()
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
if (WIN32 AND ${PAX_COMPILER_IS_MSVC})
#set(GLEW_INCLUDE_DIRS ${PAX_LIB_DIR}/win/lib/glew-2.1.0/include)
set(GLEW_LIBRARIES ${PAX_LIB_DIR}/win/lib/glew-2.1.0/lib/Release/${PAX_OS_ARCHITECTURE}/glew32.lib)
else()
find_package(GLEW REQUIRED)
endif()
include_directories(${GLEW_INCLUDE_DIRS})
set(PAX_OPENGL_HEADERS_FOR_CLION
include/paxopengl/OpenGLPlugin.h
include/paxopengl/factory/OpenGLMeshFactory.h
include/paxopengl/io/OpenGLShaderLoader.h
include/paxopengl/io/FreeImageOpenGLTextureLoader.h
include/paxopengl/OpenGLMacros.h
include/paxopengl/rendernodes/OpenGLDefaultWorldSceneGraph.h
include/paxopengl/resource/OpenGLTexture2D.h
include/paxopengl/resource/OpenGLMesh.h
include/paxopengl/resource/OpenGLShader.h
include/paxopengl/rendernodes/OpenGLContext.h
include/paxopengl/factory/OpenGLTextureFactory.h
include/paxopengl/OpenGLViewport.h
include/paxopengl/factory/OpenGLViewportFactory.h
include/paxopengl/OpenGLError.h
include/paxopengl/rendernodes/OpenGLRenderPass.h
include/paxopengl/OpenGLPointCloudSettings.h
include/paxopengl/glslpreprocessor/GLSLPreprocessor.h
include/paxopengl/glslpreprocessor/GLSLPreprocessorService.h
include/paxopengl/factory/OpenGLRenderPassFactory.h
include/paxopengl/Conversion.h include/paxopengl/glslpreprocessor/GLSLIncludeDirectives.h)
set(PAX_OPENGL_SOURCE_FILES
src/OpenGLViewport.cpp
src/io/FreeImageOpenGLTextureLoader.cpp
src/rendernodes/OpenGLDefaultWorldSceneGraph.cpp
src/rendernodes/OpenGLContext.cpp
src/resource/OpenGLTexture2D.cpp
src/resource/OpenGLMesh.cpp
src/resource/OpenGLShader.cpp
src/io/OpenGLShaderLoader.cpp
src/OpenGLPlugin.cpp
src/OpenGLError.cpp
src/rendernodes/OpenGLRenderPass.cpp
src/factory/OpenGLTextureFactory.cpp
src/OpenGLPointCloudSettings.cpp
src/factory/OpenGLRenderPassFactory.cpp
src/Conversion.cpp
src/glslpreprocessor/GLSLPreprocessorService.cpp
src/glslpreprocessor/GLSLIncludeDirectives.cpp)
### TARGET ###########################################
include_directories(include)
add_library(paxopengl
${PAX_OPENGL_HEADERS_FOR_CLION}
${PAX_OPENGL_SOURCE_FILES}
)
target_link_libraries(paxopengl ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES})