Debian Codegraph @

CodeDesigner/CMakeLists.txt

raw
1
2
3
4 # set the plugin name here
5 set( PLUGIN_NAME "CodeDesigner")
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 FILE(GLOB SRCS "*.cpp")
25
26 # Define the output
27 add_library(${PLUGIN_NAME} SHARED ${SRCS})
28
29 # Remove the "lib" prefix from the plugin name
30 set_target_properties(${PLUGIN_NAME} PROPERTIES PREFIX "")
31 target_link_libraries(${PLUGIN_NAME} ${LINKER_OPTIONS} ${wxWidgets_LIBRARIES} -L"${CL_LIBPATH}" libcodelite plugin)