moved CheckableItem to sub-project

pull/12/head
mandlm 2018-05-24 08:16:04 +02:00
parent ee63a91604
commit 95eebd4112
10 changed files with 33 additions and 8 deletions

View File

@ -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)

View File

@ -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
)

View File

@ -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
)

View File

@ -1,7 +1,7 @@
#pragma once
#include "../CheckableItem.h"
#include "../CheckableItems.h"
#include "CheckableItem.h"
#include "CheckableItems.h"
#include <QAbstractTableModel>

View File

@ -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
)

View File

@ -1,7 +1,7 @@
#pragma once
#include "../CheckableItem.h"
#include "../CheckableItems.h"
#include "CheckableItem.h"
#include "CheckableItems.h"
#include <QAbstractTableModel>