1 SET(CMAKE_LINK_LIBRARY_SUFFIX "")
3 SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
4 SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
5 SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
6 SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so") # .so
7 SET(CMAKE_DL_LIBS "-ldl")
8 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
9 SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
10 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
11 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath
12 SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
13 SET(CMAKE_INCLUDE_FLAG_C "-I") # -I
14 SET(CMAKE_INCLUDE_FLAG_C_SEP "") # , or empty
15 SET(CMAKE_LIBRARY_PATH_FLAG "-L")
16 SET(CMAKE_LINK_LIBRARY_FLAG "-l")
17 IF(CMAKE_COMPILER_IS_GNUCC)
18 SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
19 ENDIF(CMAKE_COMPILER_IS_GNUCC)
20 IF(CMAKE_COMPILER_IS_GNUCXX)
21 SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC") # -pic
22 ENDIF(CMAKE_COMPILER_IS_GNUCXX)
24 SET (CMAKE_SKIP_RPATH "NO" CACHE BOOL
25 "If set, runtime paths are not added when using shared libraries.")
27 # Choose a default install prefix for this platform.
29 SET(CMAKE_INSTALL_PREFIX "/usr/local"
30 CACHE PATH "Install path prefix, prepended onto install directories.")
32 IF("$ENV{SystemDrive}" MATCHES "^$")
33 SET(CMAKE_GENERIC_SYSTEM_DRIVE "C:")
34 ELSE("$ENV{SystemDrive}" MATCHES "^$")
35 SET(CMAKE_GENERIC_SYSTEM_DRIVE "$ENV{SystemDrive}")
36 ENDIF("$ENV{SystemDrive}" MATCHES "^$")
37 SET(CMAKE_INSTALL_PREFIX
38 "${CMAKE_GENERIC_SYSTEM_DRIVE}/Program Files/${PROJECT_NAME}"
39 CACHE PATH "Install path prefix, prepended onto install directories.")
40 SET(CMAKE_GENERIC_SYSTEM_DRIVE)
41 MARK_AS_ADVANCED(CMAKE_INSTALL_PREFIX)
48 # always include the gcc compiler information