PageRenderTime 362ms CodeModel.GetById 181ms app.highlight 2ms RepoModel.GetById 119ms app.codeStats 1ms

/indra/llplugin/CMakeLists.txt

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 85 lines | 67 code | 14 blank | 4 comment | 3 complexity | 0f195b315b86536d92f598b20373e42b MD5 | raw file
 1# -*- cmake -*-
 2
 3project(llplugin)
 4
 5include(00-Common)
 6include(CURL)
 7include(LLCommon)
 8include(LLImage)
 9include(LLMath)
10include(LLMessage)
11include(LLRender)
12include(LLXML)
13include(LLWindow)
14
15include_directories(
16    ${LLCOMMON_INCLUDE_DIRS}
17    ${LLIMAGE_INCLUDE_DIRS}
18    ${LLMATH_INCLUDE_DIRS}
19    ${LLMESSAGE_INCLUDE_DIRS}
20    ${LLRENDER_INCLUDE_DIRS}
21    ${LLXML_INCLUDE_DIRS}
22    ${LLWINDOW_INCLUDE_DIRS}
23    ${LLQTWEBKIT_INCLUDE_DIR}
24    )
25
26set(llplugin_SOURCE_FILES
27    llpluginclassmedia.cpp
28    llplugincookiestore.cpp
29    llplugininstance.cpp
30    llpluginmessage.cpp
31    llpluginmessagepipe.cpp
32    llpluginprocesschild.cpp
33    llpluginprocessparent.cpp
34    llpluginsharedmemory.cpp
35    )
36
37set(llplugin_HEADER_FILES
38    CMakeLists.txt
39
40    llpluginclassmedia.h
41    llpluginclassmediaowner.h
42    llplugincookiestore.h
43    llplugininstance.h
44    llpluginmessage.h
45    llpluginmessageclasses.h
46    llpluginmessagepipe.h
47    llpluginprocesschild.h
48    llpluginprocessparent.h
49    llpluginsharedmemory.h
50    )
51
52set_source_files_properties(${llplugin_HEADER_FILES}
53                            PROPERTIES HEADER_FILE_ONLY TRUE)
54
55if(NOT WORD_SIZE EQUAL 32)
56  if(WINDOWS)
57    add_definitions(/FIXED:NO)
58  else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
59    add_definitions(-fPIC)
60  endif(WINDOWS)
61endif(NOT WORD_SIZE EQUAL 32)
62
63list(APPEND llplugin_SOURCE_FILES ${llplugin_HEADER_FILES})
64
65add_library (llplugin ${llplugin_SOURCE_FILES})
66
67add_subdirectory(slplugin)
68
69# Add tests
70if (LL_TESTS)
71    include(LLAddBuildTest)
72    # UNIT TESTS
73    SET(llplugin_TEST_SOURCE_FILES
74      llplugincookiestore.cpp
75      )
76
77    # llplugincookiestore has a dependency on curl, so we need to link the curl library into the test.
78    set_source_files_properties(
79      llplugincookiestore.cpp
80      PROPERTIES
81        LL_TEST_ADDITIONAL_LIBRARIES "${CURL_LIBRARIES}"
82      )
83
84    LL_ADD_PROJECT_UNIT_TESTS(llplugin "${llplugin_TEST_SOURCE_FILES}")
85endif (LL_TESTS)