Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion QmakePlugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,32 @@ if(USE_PCH AND NOT MINGW)
add_definitions(-Winvalid-pch)
endif()

wxcrafter_target(
QmakePluginNewProj
"${CMAKE_CURRENT_SOURCE_DIR}/NewQtProj.wxcp"
"${CMAKE_CURRENT_BINARY_DIR}"
"NewQtProj.cpp"
"NewQtProj.hpp"
"NewQtProj_qmakeplugin_bitmaps.cpp")
wxcrafter_target(
QmakePluginSettings
"${CMAKE_CURRENT_SOURCE_DIR}/qmakesettingsbasedlg.wxcp"
"${CMAKE_CURRENT_BINARY_DIR}"
"qmakesettingsbasedlg.cpp"
"qmakesettingsbasedlg.hpp"
"qmakesettingsbasedlg_qmakeplugin_bitmaps.cpp")
wxcrafter_target(
QmakePluginTab
"${CMAKE_CURRENT_SOURCE_DIR}/qmaketabbase.wxcp"
"${CMAKE_CURRENT_BINARY_DIR}"
"qmaketabbase.cpp"
"qmaketabbase.hpp"
"qmaketabbase_qmakeplugin_bitmaps.cpp")

file(GLOB SRCS "*.cpp")

# Define the output
add_library(${PLUGIN_NAME} SHARED ${SRCS})
add_library(${PLUGIN_NAME} SHARED ${SRCS} ${WXCRAFTER_QmakePluginNewProj_OUTPUTS} ${WXCRAFTER_QmakePluginSettings_OUTPUTS} ${WXCRAFTER_QmakePluginTab_OUTPUTS})

if(UNIX OR APPLE)
set_target_properties(${PLUGIN_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
Expand All @@ -27,6 +49,7 @@ endif()

# CodeLite plugins doesn't use the "lib" prefix.
set_target_properties(${PLUGIN_NAME} PROPERTIES PREFIX "")
target_include_directories(${PLUGIN_NAME} PUBLIC "${WXCRAFTER_QmakePluginSettings_OUTPUTDIR}")
target_link_libraries(${PLUGIN_NAME} ${LINKER_OPTIONS} libcodelite plugin)
# Installation destination
cl_install_plugin(${PLUGIN_NAME})
134 changes: 0 additions & 134 deletions QmakePlugin/NewQtProj.cpp

This file was deleted.

69 changes: 0 additions & 69 deletions QmakePlugin/NewQtProj.h

This file was deleted.

49 changes: 0 additions & 49 deletions QmakePlugin/NewQtProj_qmakeplugin_bitmaps.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion QmakePlugin/newqtprojdlg.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Subclass of NewQtProjBaseDlg, which is generated by wxFormBuilder.
*/

#include "NewQtProj.h"
#include "NewQtProj.hpp"

class QmakeConf;
class IManager;
Expand Down
Loading
Loading