moved CheckableItem to sub-project

This commit is contained in:
Michael Mandl 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} 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)

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

View file

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

View file

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

View file

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