Debian Codegraph @

git/CMakeLists.txt

raw
1
2
3
4 # set the plugin name here
5 set( PLUGIN_NAME "git")
6
7 # Our project is called 'plugin' this is how it will be called in
8 # visual studio, and in our makefiles.
9 project( ${PLUGIN_NAME} )
10
11 # It was noticed that when using MinGW gcc it is essential that 'core' is mentioned before 'base'.
12
13
14 # wxWidgets include (this will do all the magic to configure everything)
15 include( "${wxWidgets_USE_FILE}" )
16
17 # Include paths
18 include_directories("${CL_SRC_ROOT}/Plugin" "${CL_SRC_ROOT}/sdk/wxsqlite3/include" "${CL_SRC_ROOT}/CodeLite" "${CL_SRC_ROOT}/PCH" "${CL_SRC_ROOT}/Interfaces")
19
20 add_definitions(-DWXUSINGDLL_WXSQLITE3)
21 add_definitions(-DWXUSINGDLL_CL)
22 add_definitions(-DWXUSINGDLL_SDK)
23
24 if (UNIX AND NOT APPLE)
25 set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC" )
26 set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
27 endif()
28
29 if ( APPLE )
30 add_definitions(-fPIC)
31 endif()
32
33
34 FILE(GLOB SRCS "*.cpp")
35
36 # Define the output
37 add_library(${PLUGIN_NAME} SHARED ${SRCS})
38
39 # Remove the "lib" prefix from the plugin name
40 set_target_properties(${PLUGIN_NAME} PROPERTIES PREFIX "")
41 target_link_libraries(${PLUGIN_NAME}
42 ${LINKER_OPTIONS}
43 ${wxWidgets_LIBRARIES}
44 libcodelite
45 plugin
46 )
47
48 CL_INSTALL_PLUGIN(${PLUGIN_NAME})