Auto status change to "Under Review"
@@ -1,99 +1,88 | |||
|
1 | 1 | # |
|
2 | 2 | # sciqlop_params : Define compilation parameters |
|
3 | 3 | # |
|
4 | 4 | # Debug or release |
|
5 | 5 | # |
|
6 | 6 | # As the "NMake Makefiles" forces by default the CMAKE_BUILD_TYPE variable to Debug, SCIQLOP_BUILD_TYPE variable is used to be sure that the debug mode is a user choice |
|
7 | 7 | #SET(SCIQLOP_BUILD_TYPE "Release" CACHE STRING "Choose to compile in Debug or Release mode") |
|
8 | 8 | |
|
9 | #IF(SCIQLOP_BUILD_TYPE MATCHES "Debug") | |
|
10 | # MESSAGE (STATUS "Build in Debug") | |
|
11 | # SET (CMAKE_BUILD_TYPE "Debug") | |
|
12 | # SET (DEBUG_SUFFIX "d") | |
|
13 | #ELSE() | |
|
14 | # MESSAGE (STATUS "Build in Release") | |
|
15 | # SET (CMAKE_BUILD_TYPE "Release") | |
|
16 | # SET (SCIQLOP_BUILD_TYPE "Release") | |
|
17 | # SET (DEBUG_SUFFIX "") | |
|
18 | #ENDIF() | |
|
19 | ||
|
20 | 9 | IF(CMAKE_BUILD_TYPE MATCHES "Debug") |
|
21 | 10 | SET (CMAKE_BUILD_TYPE "Debug") |
|
22 | 11 | SET (DEBUG_SUFFIX "d") |
|
23 | 12 | ELSE() |
|
24 | 13 | MESSAGE (STATUS "Build in Release") |
|
25 | 14 | SET (SCIQLOP_BUILD_TYPE "Release") |
|
26 | 15 | SET (DEBUG_SUFFIX "") |
|
27 | 16 | ENDIF() |
|
28 | 17 | |
|
29 | 18 | # |
|
30 | 19 | # Need to compile tests? |
|
31 | 20 | # |
|
32 | 21 | OPTION (BUILD_TESTS "Build the tests" OFF) |
|
33 | 22 | ENABLE_TESTING(${BUILD_TESTS}) |
|
34 | 23 | |
|
35 | 24 | # |
|
36 | 25 | # Path to the folder for sciqlop's extern libraries. |
|
37 | 26 | # |
|
38 | 27 | # When looking for an external library in sciqlop, we look to the following |
|
39 | 28 | # folders: |
|
40 | 29 | # - The specific folder for the library (generally of the form <LIBRARY>_ROOT_DIR |
|
41 | 30 | # - The global Sciqlop extern folder |
|
42 | 31 | # - The system folders. |
|
43 | 32 | # |
|
44 | 33 | # If a dependency is found in the global extern folder or a specific folder for |
|
45 | 34 | # the library, then it is installed with the sciqlop libraries. If it is found |
|
46 | 35 | # in the system folders, it is not. This behavior can be overriden with the |
|
47 | 36 | # <LIBRARY>_COPY_SHARED_LIBRARIES flag. |
|
48 | 37 | # |
|
49 | 38 | set(SCIQLOP_EXTERN_FOLDER "${CMAKE_CURRENT_SOURCE_DIR}/extern" |
|
50 | 39 | CACHE PATH "Path to the folder for sciqlop's extern libraries") |
|
51 | 40 | option(SCIQLOP_FORCE_UPDATE_EXT_ROOT_DIR "Force the <LIBRARY>_ROOT_DIR to be updated to the global sciqlop extern folder" |
|
52 | 41 | OFF) |
|
53 | 42 | |
|
54 | 43 | if (SCIQLOP_FORCE_UPDATE_EXT_ROOT_DIR) |
|
55 | 44 | set(libRootDirForceValue FORCE) |
|
56 | 45 | else() |
|
57 | 46 | set(libRootDirForceValue) |
|
58 | 47 | endif() |
|
59 | 48 | |
|
60 | 49 | |
|
61 | 50 | |
|
62 | 51 | # |
|
63 | 52 | # Static or shared libraries |
|
64 | 53 | # |
|
65 | 54 | OPTION (BUILD_SHARED_LIBS "Build the shared libraries" ON) |
|
66 | 55 | |
|
67 | 56 | # Generate position independant code (-fPIC) |
|
68 | 57 | SET(CMAKE_POSITION_INDEPENDENT_CODE TRUE) |
|
69 | 58 | |
|
70 | 59 | # |
|
71 | 60 | # Configure installation directories |
|
72 | 61 | # |
|
73 | 62 | IF (UNIX) |
|
74 | 63 | SET(defaultBin "bin") |
|
75 | 64 | SET(defaultInc "include/sciqlop") |
|
76 | 65 | |
|
77 | 66 | # 32 or 64 bits compiler |
|
78 | 67 | IF( CMAKE_SIZEOF_VOID_P EQUAL 8 ) |
|
79 | 68 | SET(defaultLib "lib64/sciqlop") |
|
80 | 69 | ELSE() |
|
81 | 70 | SET(defaultLib "lib/sciqlop") |
|
82 | 71 | ENDIF() |
|
83 | 72 | |
|
84 | 73 | SET(defaultDoc "share/docs/sciqlop") |
|
85 | 74 | ELSE() |
|
86 | 75 | SET(defaultBin "bin") |
|
87 | 76 | SET(defaultInc "include/sciqlop") |
|
88 | 77 | SET(defaultLib "lib/sciqlop") |
|
89 | 78 | SET(defaultDoc "docs/sciqlop") |
|
90 | 79 | ENDIF() |
|
91 | 80 | |
|
92 | 81 | SET(INSTALL_BINARY_DIR "${defaultBin}" CACHE STRING |
|
93 | 82 | "Installation directory for binaries") |
|
94 | 83 | SET(INSTALL_LIBRARY_DIR "${defaultLib}" CACHE STRING |
|
95 | 84 | "Installation directory for libraries") |
|
96 | 85 | SET(INSTALL_INCLUDE_DIR "${defaultInc}" CACHE STRING |
|
97 | 86 | "Installation directory for headers") |
|
98 | 87 | SET(INSTALL_DOCUMENTATION_DIR "${defaultDoc}" CACHE STRING |
|
99 | 88 | "Installation directory for documentations") |
General Comments 3
Status change > Approved
You need to be logged in to leave comments.
Login now