moved CheckableItem to sub-project
This commit is contained in:
parent
ee63a91604
commit
95eebd4112
@ -35,12 +35,15 @@ target_include_directories(${PROJECT_NAME}
|
|||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
CheckableItem
|
||||||
MetaData
|
MetaData
|
||||||
VerbEnd
|
VerbEnd
|
||||||
Genus
|
Genus
|
||||||
Qt5::Widgets
|
Qt5::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_subdirectory(CheckableItem)
|
||||||
|
|
||||||
add_subdirectory(MetaData)
|
add_subdirectory(MetaData)
|
||||||
add_subdirectory(VerbEnd)
|
add_subdirectory(VerbEnd)
|
||||||
add_subdirectory(Genus)
|
add_subdirectory(Genus)
|
||||||
|
24
source/CheckableItem/CMakeLists.txt
Normal file
24
source/CheckableItem/CMakeLists.txt
Normal 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
|
||||||
|
)
|
@ -13,8 +13,6 @@ qt5_wrap_ui(GENUS_UI
|
|||||||
add_library(${PROJECT_NAME}
|
add_library(${PROJECT_NAME}
|
||||||
GenusWidget.cpp
|
GenusWidget.cpp
|
||||||
GenusModel.cpp
|
GenusModel.cpp
|
||||||
../CheckableItem.cpp
|
|
||||||
../CheckableItems.cpp
|
|
||||||
${GENUS_UI}
|
${GENUS_UI}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -29,5 +27,6 @@ target_include_directories(${PROJECT_NAME}
|
|||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
CheckableItem
|
||||||
Qt5::Widgets
|
Qt5::Widgets
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../CheckableItem.h"
|
#include "CheckableItem.h"
|
||||||
#include "../CheckableItems.h"
|
#include "CheckableItems.h"
|
||||||
|
|
||||||
#include <QAbstractTableModel>
|
#include <QAbstractTableModel>
|
||||||
|
|
||||||
|
@ -13,8 +13,6 @@ qt5_wrap_ui(UI_HEADERS
|
|||||||
add_library(${PROJECT_NAME}
|
add_library(${PROJECT_NAME}
|
||||||
VerbEndWidget.cpp
|
VerbEndWidget.cpp
|
||||||
VerbEndModel.cpp
|
VerbEndModel.cpp
|
||||||
../CheckableItem.cpp
|
|
||||||
../CheckableItems.cpp
|
|
||||||
${UI_HEADERS}
|
${UI_HEADERS}
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -29,5 +27,6 @@ target_include_directories(${PROJECT_NAME}
|
|||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
|
CheckableItem
|
||||||
Qt5::Widgets
|
Qt5::Widgets
|
||||||
)
|
)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../CheckableItem.h"
|
#include "CheckableItem.h"
|
||||||
#include "../CheckableItems.h"
|
#include "CheckableItems.h"
|
||||||
|
|
||||||
#include <QAbstractTableModel>
|
#include <QAbstractTableModel>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user