##// END OF EJS Templates
Add mac support in cmake
Thibaud Rabillard -
r911:f9b30b97e672
parent child
Show More
@@ -1,21 +1,25
1 # - Try to find sciqlop-core
1 # - Try to find sciqlop-core
2 # Once done this will define
2 # Once done this will define
3 # SCIQLOP-CORE_FOUND - System has sciqlop-core
3 # SCIQLOP-CORE_FOUND - System has sciqlop-core
4 # SCIQLOP-CORE_INCLUDE_DIR - The sciqlop-core include directories
4 # SCIQLOP-CORE_INCLUDE_DIR - The sciqlop-core include directories
5 # SCIQLOP-CORE_LIBRARIES - The libraries needed to use sciqlop-core
5 # SCIQLOP-CORE_LIBRARIES - The libraries needed to use sciqlop-core
6
6
7 if(SCIQLOP-CORE_FOUND)
7 if(SCIQLOP-CORE_FOUND)
8 return()
8 return()
9 endif(SCIQLOP-CORE_FOUND)
9 endif(SCIQLOP-CORE_FOUND)
10
10
11 set(SCIQLOP-CORE_INCLUDE_DIR ${sciqlop-core_DIR}/../include)
11 set(SCIQLOP-CORE_INCLUDE_DIR ${sciqlop-core_DIR}/../include)
12
12
13 set (OS_LIB_EXTENSION "so")
13 set (OS_LIB_EXTENSION "so")
14
14
15 if(WIN32)
15 if(WIN32)
16 set (OS_LIB_EXTENSION "dll")
16 set (OS_LIB_EXTENSION "dll")
17 endif(WIN32)
17 endif(WIN32)
18 # TODO: Add Mac Support
18
19 if (APPLE)
20 set (OS_LIB_EXTENSION "dylib")
21 endif(APPLE)
22
19 set(SCIQLOP-CORE_LIBRARIES ${LIBRARY_OUTPUT_PATH}/libsciqlop_core${DEBUG_SUFFIX}.${OS_LIB_EXTENSION})
23 set(SCIQLOP-CORE_LIBRARIES ${LIBRARY_OUTPUT_PATH}/libsciqlop_core${DEBUG_SUFFIX}.${OS_LIB_EXTENSION})
20
24
21 set(SCIQLOP-CORE_FOUND TRUE)
25 set(SCIQLOP-CORE_FOUND TRUE)
@@ -1,21 +1,25
1 # - Try to find sciqlop-gui
1 # - Try to find sciqlop-gui
2 # Once done this will define
2 # Once done this will define
3 # SCIQLOP-GUI_FOUND - System has sciqlop-gui
3 # SCIQLOP-GUI_FOUND - System has sciqlop-gui
4 # SCIQLOP-GUI_INCLUDE_DIR - The sciqlop-gui include directories
4 # SCIQLOP-GUI_INCLUDE_DIR - The sciqlop-gui include directories
5 # SCIQLOP-GUI_LIBRARIES - The libraries needed to use sciqlop-gui
5 # SCIQLOP-GUI_LIBRARIES - The libraries needed to use sciqlop-gui
6
6
7 if(SCIQLOP-GUI_FOUND)
7 if(SCIQLOP-GUI_FOUND)
8 return()
8 return()
9 endif(SCIQLOP-GUI_FOUND)
9 endif(SCIQLOP-GUI_FOUND)
10
10
11 set(SCIQLOP-GUI_INCLUDE_DIR ${sciqlop-gui_DIR}/../include)
11 set(SCIQLOP-GUI_INCLUDE_DIR ${sciqlop-gui_DIR}/../include)
12
12
13 set (OS_LIB_EXTENSION "so")
13 set (OS_LIB_EXTENSION "so")
14
14
15 if(WIN32)
15 if(WIN32)
16 set (OS_LIB_EXTENSION "dll")
16 set (OS_LIB_EXTENSION "dll")
17 endif(WIN32)
17 endif(WIN32)
18 # TODO: Add Mac Support
18
19 if (APPLE)
20 set (OS_LIB_EXTENSION "dylib")
21 endif(APPLE)
22
19 set(SCIQLOP-GUI_LIBRARIES ${LIBRARY_OUTPUT_PATH}/libsciqlop_gui${DEBUG_SUFFIX}.${OS_LIB_EXTENSION})
23 set(SCIQLOP-GUI_LIBRARIES ${LIBRARY_OUTPUT_PATH}/libsciqlop_gui${DEBUG_SUFFIX}.${OS_LIB_EXTENSION})
20
24
21 set(SCIQLOP-GUI_FOUND TRUE)
25 set(SCIQLOP-GUI_FOUND TRUE)
@@ -1,22 +1,26
1 # - Try to find sciqlop-amda
1 # - Try to find sciqlop-amda
2 # Once done this will define
2 # Once done this will define
3 # SCIQLOP-AMDA_FOUND - System has sciqlop-amda
3 # SCIQLOP-AMDA_FOUND - System has sciqlop-amda
4 # SCIQLOP-AMDA_INCLUDE_DIR - The sciqlop-amda include directories
4 # SCIQLOP-AMDA_INCLUDE_DIR - The sciqlop-amda include directories
5 # SCIQLOP-AMDA_LIBRARIES - The libraries needed to use sciqlop-amda
5 # SCIQLOP-AMDA_LIBRARIES - The libraries needed to use sciqlop-amda
6
6
7 if(SCIQLOP-AMDA_FOUND)
7 if(SCIQLOP-AMDA_FOUND)
8 return()
8 return()
9 endif(SCIQLOP-AMDA_FOUND)
9 endif(SCIQLOP-AMDA_FOUND)
10
10
11 set(SCIQLOP-AMDA_INCLUDE_DIR ${sciqlop-amda_DIR}/../include)
11 set(SCIQLOP-AMDA_INCLUDE_DIR ${sciqlop-amda_DIR}/../include)
12
12
13 set (OS_LIB_EXTENSION "so")
13 set (OS_LIB_EXTENSION "so")
14
14
15 if(WIN32)
15 if(WIN32)
16 set (OS_LIB_EXTENSION "dll")
16 set (OS_LIB_EXTENSION "dll")
17 endif(WIN32)
17 endif(WIN32)
18 # TODO: Add Mac Support
18
19 if (APPLE)
20 set (OS_LIB_EXTENSION "dylib")
21 endif(APPLE)
22
19 set(SCIQLOP-AMDA_LIBRARIES_NAME "libsciqlop_amda${DEBUG_SUFFIX}.${OS_LIB_EXTENSION}")
23 set(SCIQLOP-AMDA_LIBRARIES_NAME "libsciqlop_amda${DEBUG_SUFFIX}.${OS_LIB_EXTENSION}")
20 set(SCIQLOP-AMDA_LIBRARIES "${LIBRARY_OUTPUT_PATH}/${SCIQLOP-AMDA_LIBRARIES_NAME}")
24 set(SCIQLOP-AMDA_LIBRARIES "${LIBRARY_OUTPUT_PATH}/${SCIQLOP-AMDA_LIBRARIES_NAME}")
21
25
22 set(SCIQLOP-AMDA_FOUND TRUE)
26 set(SCIQLOP-AMDA_FOUND TRUE)
@@ -1,22 +1,26
1 # - Try to find sciqlop-mockplugin
1 # - Try to find sciqlop-mockplugin
2 # Once done this will define
2 # Once done this will define
3 # SCIQLOP-MOCKPLUGIN_FOUND - System has sciqlop-mockplugin
3 # SCIQLOP-MOCKPLUGIN_FOUND - System has sciqlop-mockplugin
4 # SCIQLOP-MOCKPLUGIN_INCLUDE_DIR - The sciqlop-mockplugin include directories
4 # SCIQLOP-MOCKPLUGIN_INCLUDE_DIR - The sciqlop-mockplugin include directories
5 # SCIQLOP-MOCKPLUGIN_LIBRARIES - The libraries needed to use sciqlop-mockplugin
5 # SCIQLOP-MOCKPLUGIN_LIBRARIES - The libraries needed to use sciqlop-mockplugin
6
6
7 if(SCIQLOP-MOCKPLUGIN_FOUND)
7 if(SCIQLOP-MOCKPLUGIN_FOUND)
8 return()
8 return()
9 endif(SCIQLOP-MOCKPLUGIN_FOUND)
9 endif(SCIQLOP-MOCKPLUGIN_FOUND)
10
10
11 set(SCIQLOP-MOCKPLUGIN_INCLUDE_DIR ${sciqlop-mockplugin_DIR}/../include)
11 set(SCIQLOP-MOCKPLUGIN_INCLUDE_DIR ${sciqlop-mockplugin_DIR}/../include)
12
12
13 set (OS_LIB_EXTENSION "so")
13 set (OS_LIB_EXTENSION "so")
14
14
15 if(WIN32)
15 if(WIN32)
16 set (OS_LIB_EXTENSION "dll")
16 set (OS_LIB_EXTENSION "dll")
17 endif(WIN32)
17 endif(WIN32)
18 # TODO: Add Mac Support
18
19 if (APPLE)
20 set (OS_LIB_EXTENSION "dylib")
21 endif(APPLE)
22
19 set(SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME "libsciqlop_mockplugin${DEBUG_SUFFIX}.${OS_LIB_EXTENSION}")
23 set(SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME "libsciqlop_mockplugin${DEBUG_SUFFIX}.${OS_LIB_EXTENSION}")
20 set(SCIQLOP-MOCKPLUGIN_LIBRARIES "${LIBRARY_OUTPUT_PATH}/${SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME}")
24 set(SCIQLOP-MOCKPLUGIN_LIBRARIES "${LIBRARY_OUTPUT_PATH}/${SCIQLOP-MOCKPLUGIN_LIBRARIES_NAME}")
21
25
22 set(SCIQLOP-MOCKPLUGIN_FOUND TRUE)
26 set(SCIQLOP-MOCKPLUGIN_FOUND TRUE)
General Comments 3
Under Review
author

Auto status change to "Under Review"

Approved
author

Status change > Approved

You need to be logged in to leave comments. Login now