diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/cmake/ExamplePlugin.cmake | 16 | ||||
-rw-r--r-- | linden/indra/llplugin/CMakeLists.txt | 8 |
2 files changed, 24 insertions, 0 deletions
diff --git a/linden/indra/cmake/ExamplePlugin.cmake b/linden/indra/cmake/ExamplePlugin.cmake new file mode 100644 index 0000000..599787a --- /dev/null +++ b/linden/indra/cmake/ExamplePlugin.cmake | |||
@@ -0,0 +1,16 @@ | |||
1 | # -*- cmake -*- | ||
2 | include(Linking) | ||
3 | include(Prebuilt) | ||
4 | |||
5 | if (STANDALONE) | ||
6 | set(EXAMPLEPLUGIN OFF CACHE BOOL | ||
7 | "EXAMPLEPLUGIN support for the llplugin/llmedia test apps.") | ||
8 | else (STANDALONE) | ||
9 | set(EXAMPLEPLUGIN ON CACHE BOOL | ||
10 | "EXAMPLEPLUGIN support for the llplugin/llmedia test apps.") | ||
11 | endif (STANDALONE) | ||
12 | |||
13 | if (WINDOWS) | ||
14 | elseif (DARWIN) | ||
15 | elseif (LINUX) | ||
16 | endif (WINDOWS) | ||
diff --git a/linden/indra/llplugin/CMakeLists.txt b/linden/indra/llplugin/CMakeLists.txt index 6706775..e41cdf7 100644 --- a/linden/indra/llplugin/CMakeLists.txt +++ b/linden/indra/llplugin/CMakeLists.txt | |||
@@ -48,6 +48,14 @@ set(llplugin_HEADER_FILES | |||
48 | set_source_files_properties(${llplugin_HEADER_FILES} | 48 | set_source_files_properties(${llplugin_HEADER_FILES} |
49 | PROPERTIES HEADER_FILE_ONLY TRUE) | 49 | PROPERTIES HEADER_FILE_ONLY TRUE) |
50 | 50 | ||
51 | if(WORD_SIZE EQUAL 64) | ||
52 | if(WINDOWS) | ||
53 | add_definitions(/FIXED:NO) | ||
54 | else(WINDOWS) # not windows therefore gcc LINUX and DARWIN | ||
55 | add_definitions(-fPIC) | ||
56 | endif(WINDOWS) | ||
57 | endif (WORD_SIZE EQUAL 64) | ||
58 | |||
51 | list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES}) | 59 | list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES}) |
52 | 60 | ||
53 | add_library (llplugin ${llplugin_SOURCE_FILES}) | 61 | add_library (llplugin ${llplugin_SOURCE_FILES}) |