|
@@ -2,7 +2,7 @@ cmake_minimum_required( VERSION 2.8 )
|
2
|
2
|
|
3
|
3
|
project( "slop" )
|
4
|
4
|
set( slop_VERSION_MAJOR 4 )
|
5
|
|
-set( slop_VERSION_MINOR 2 )
|
|
5
|
+set( slop_VERSION_MINOR 3 )
|
6
|
6
|
set( slop_VERSION_PATCH 20 )
|
7
|
7
|
|
8
|
8
|
set( CMAKE_OPENGL_SUPPORT FALSE CACHE BOOL "Whether or not to compile with OpenGL, shaders, magnification, and theming support." )
|
|
@@ -12,6 +12,10 @@ if( NOT CMAKE_INSTALL_PREFIX )
|
12
|
12
|
set( CMAKE_INSTALL_PREFIX "/usr" )
|
13
|
13
|
endif()
|
14
|
14
|
|
|
15
|
+if( NOT INSTALL_PREFIX )
|
|
16
|
+ set( INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}" CACHE PATH "The path where slop thinks it resides in, so that it can find the shaders. This is not necessarily the CMAKE_INSTALL_PREFIX. For example if the shaders will exist in /usr/share/slop, INSTALL_PREFIX should be \"/usr\"." )
|
|
17
|
+endif()
|
|
18
|
+
|
15
|
19
|
if( NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE )
|
16
|
20
|
set( CMAKE_BUILD_TYPE RelWithDebInfo )
|
17
|
21
|
endif()
|
|
@@ -159,7 +163,7 @@ endif()
|
159
|
163
|
install( TARGETS ${BIN_TARGET}
|
160
|
164
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/bin" )
|
161
|
165
|
|
162
|
|
-add_definitions(-DINSTALL_PREFIX="${CMAKE_INSTALL_PREFIX}")
|
|
166
|
+add_definitions(-DINSTALL_PREFIX="${INSTALL_PREFIX}")
|
163
|
167
|
|
164
|
168
|
if( CMAKE_OPENGL_SUPPORT )
|
165
|
169
|
install( DIRECTORY "${CMAKE_SOURCE_DIR}/share"
|