Restructuring directory layout. Move towards "Modern CMake" usage.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
project (Merge LANGUAGES CXX)
|
||||
|
||||
#=====================================
|
||||
# Sources
|
||||
#=====================================
|
||||
set (merge_sources
|
||||
Factory.cpp
|
||||
Record.cpp
|
||||
Merge.cpp
|
||||
None.cpp
|
||||
Text.cpp
|
||||
TextCsv.cpp
|
||||
TextCsvKeys.cpp
|
||||
TextTsv.cpp
|
||||
TextTsvKeys.cpp
|
||||
TextColon.cpp
|
||||
TextColonKeys.cpp
|
||||
TextSemicolon.cpp
|
||||
TextSemicolonKeys.cpp
|
||||
)
|
||||
|
||||
set (merge_qobject_headers
|
||||
Merge.h
|
||||
)
|
||||
|
||||
qt5_wrap_cpp (merge_moc_sources ${merge_qobject_headers})
|
||||
|
||||
#=====================================
|
||||
# Target
|
||||
#=====================================
|
||||
add_library (Merge STATIC
|
||||
${merge_sources}
|
||||
${merge_moc_sources}
|
||||
)
|
||||
|
||||
target_compile_features (Merge
|
||||
PUBLIC cxx_std_11
|
||||
)
|
||||
|
||||
target_include_directories (Merge
|
||||
PUBLIC ..
|
||||
)
|
||||
|
||||
target_link_libraries (Merge
|
||||
Qt5::Core
|
||||
)
|
||||
Reference in New Issue
Block a user