moved CheckableItem to sub-project
parent
ee63a91604
commit
95eebd4112
|
@ -35,12 +35,15 @@ target_include_directories(${PROJECT_NAME}
|
|||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
CheckableItem
|
||||
MetaData
|
||||
VerbEnd
|
||||
Genus
|
||||
Qt5::Widgets
|
||||
)
|
||||
|
||||
add_subdirectory(CheckableItem)
|
||||
|
||||
add_subdirectory(MetaData)
|
||||
add_subdirectory(VerbEnd)
|
||||
add_subdirectory(Genus)
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
cmake_minimum_required(VERSION 3.6)
|
||||
|
||||
project(CheckableItem LANGUAGES CXX)
|
||||
|
||||
find_package(Qt5Core REQUIRED)
|
||||
|
||||
add_library(${PROJECT_NAME}
|
||||
CheckableItem.cpp
|
||||
CheckableItems.cpp
|
||||
)
|
||||
|
||||
set_target_properties(${PROJECT_NAME}
|
||||
PROPERTIES CXX_STANDARD 14
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
Qt5::Core
|
||||
)
|
|
@ -13,8 +13,6 @@ qt5_wrap_ui(GENUS_UI
|
|||
add_library(${PROJECT_NAME}
|
||||
GenusWidget.cpp
|
||||
GenusModel.cpp
|
||||
../CheckableItem.cpp
|
||||
../CheckableItems.cpp
|
||||
${GENUS_UI}
|
||||
)
|
||||
|
||||
|
@ -29,5 +27,6 @@ target_include_directories(${PROJECT_NAME}
|
|||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
CheckableItem
|
||||
Qt5::Widgets
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "../CheckableItem.h"
|
||||
#include "../CheckableItems.h"
|
||||
#include "CheckableItem.h"
|
||||
#include "CheckableItems.h"
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
|
|
|
@ -13,8 +13,6 @@ qt5_wrap_ui(UI_HEADERS
|
|||
add_library(${PROJECT_NAME}
|
||||
VerbEndWidget.cpp
|
||||
VerbEndModel.cpp
|
||||
../CheckableItem.cpp
|
||||
../CheckableItems.cpp
|
||||
${UI_HEADERS}
|
||||
)
|
||||
|
||||
|
@ -29,5 +27,6 @@ target_include_directories(${PROJECT_NAME}
|
|||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
CheckableItem
|
||||
Qt5::Widgets
|
||||
)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "../CheckableItem.h"
|
||||
#include "../CheckableItems.h"
|
||||
#include "CheckableItem.h"
|
||||
#include "CheckableItems.h"
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
|
||||
|
|
Loading…
Reference in New Issue