##// END OF EJS Templates
CMakeLists for "plugin" module...
Alexandre Leroux -
r64:64b6a9e1cea3
parent child
Show More
@@ -0,0 +1,45
1 ## plugin - CMakeLists.txt
2 STRING(TOLOWER ${CMAKE_PROJECT_NAME} LIBRARY_PREFFIX)
3 SET(SQPPLUGIN_LIBRARY_NAME "${LIBRARY_PREFFIX}_plugin${DEBUG_SUFFIX}")
4 SET(INCLUDES_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include")
5
6 # Include plugin directory
7 INCLUDE_DIRECTORIES("${INCLUDES_DIR}")
8
9 #
10 # Find Qt modules
11 #
12 SCIQLOP_FIND_QT(Core)
13
14 #
15 # Compile the library
16 #
17 FILE (GLOB_RECURSE MODULE_SOURCES
18 ${INCLUDES_DIR}/*.h)
19
20 ADD_LIBRARY(${SQPPLUGIN_LIBRARY_NAME} ${MODULE_SOURCES})
21
22 # Add the files to the list of files to be analyzed
23 LIST(APPEND CHECKSTYLE_INPUT_FILES ${MODULE_SOURCES})
24 SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_INPUT_FILES)
25 # Vera++ exclusion files
26 #LIST(APPEND CHECKSTYLE_EXCLUSION_FILES ${CMAKE_CURRENT_SOURCE_DIR}/path/to/exclusionFiles.tcl)
27 SCIQLOP_SET_TO_PARENT_SCOPE(CHECKSTYLE_EXCLUSION_FILES)
28
29 #
30 # Set the files that must be formatted by clang-format.
31 #
32 LIST (APPEND FORMATTING_INPUT_FILES ${MODULE_SOURCES})
33 SCIQLOP_SET_TO_PARENT_SCOPE(FORMATTING_INPUT_FILES)
34
35 #
36 # Set the directories that doxygen must browse to generate the
37 # documentation.
38 #
39 # Source directories:
40 LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/docs")
41 LIST (APPEND DOXYGEN_INPUT_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
42 SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_INPUT_DIRS)
43 # Source directories to exclude from the documentation generation
44 #LIST (APPEND DOXYGEN_EXCLUDE_PATTERNS "${CMAKE_CURRENT_SOURCE_DIR}/path/to/subdir/*")
45 SCIQLOP_SET_TO_PARENT_SCOPE(DOXYGEN_EXCLUDE_PATTERNS)
@@ -0,0 +1,12
1 # - Try to find sciqlop-plugin
2 # Once done this will define
3 # SCIQLOP-PLUGIN_FOUND - System has sciqlop-plugin
4 # SCIQLOP-PLUGIN_INCLUDE_DIR - The sciqlop-plugin include directories
5
6 if(SCIQLOP-PLUGIN_FOUND)
7 return()
8 endif(SCIQLOP-PLUGIN_FOUND)
9
10 set(SCIQLOP-PLUGIN_INCLUDE_DIR ${sciqlop-plugin_DIR}/../include)
11
12 set(SCIQLOP-PLUGIN_FOUND TRUE)
@@ -21,6 +21,10 endif(BUILD_TESTS)
21 #
21 #
22 # Compile the diffents modules
22 # Compile the diffents modules
23 #
23 #
24 set(sciqlop-plugin_DIR "${CMAKE_SOURCE_DIR}/plugin/cmake")
25 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-plugin_DIR}")
26 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/plugin")
27
24 set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake")
28 set(sciqlop-core_DIR "${CMAKE_SOURCE_DIR}/core/cmake")
25 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}")
29 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${sciqlop-core_DIR}")
26 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core")
30 ADD_SUBDIRECTORY("${CMAKE_SOURCE_DIR}/core")
General Comments 0
You need to be logged in to leave comments. Login now