Commit 1a51a0a3eb1316f8464e7bd9ded78aa52fa2d837
1 parent
70961ef0
Fixed CMakeLists
Showing
2 changed files
with
38 additions
and
30 deletions
CMakeLists.txt
| 1 | cmake_minimum_required(VERSION 3.16) | 1 | cmake_minimum_required(VERSION 3.16) |
| 2 | LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake ) | 2 | LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake ) |
| 3 | include(projectheader) | 3 | include(projectheader) |
| 4 | -project_header(datamodels) | 4 | +project_header(osdev_datamodels) |
| 5 | 5 | ||
| 6 | -find_package(Qt5 "5.15.0" COMPONENTS Core CONFIG REQUIRED ) | ||
| 7 | - | ||
| 8 | -include_directories( SYSTEM | ||
| 9 | - ${Qt5Core_INCLUDE_DIRS} | ||
| 10 | -) | ||
| 11 | - | ||
| 12 | -include(compiler) | ||
| 13 | - | ||
| 14 | -set( SRC_LIST | ||
| 15 | - ${CMAKE_SOURCE_DIR}/src/tablemodel/tablemodel.cpp | ||
| 16 | -) | ||
| 17 | - | ||
| 18 | -include(qtmoc) | ||
| 19 | -create_mocs( SRC_LIST MOC_LIST | ||
| 20 | - ${CMAKE_SOURCE_DIR}/src/tablemodel/tablemodel.h | ||
| 21 | -) | ||
| 22 | - | ||
| 23 | -link_directories( | ||
| 24 | - ${CMAKE_BINARY_DIR}/lib | ||
| 25 | -) | ||
| 26 | - | ||
| 27 | -include(library) | ||
| 28 | -add_libraries( | ||
| 29 | - ${Qt5Core_LIBRARIES} | ||
| 30 | -) | ||
| 31 | - | ||
| 32 | - | ||
| 33 | -include(installation) | ||
| 34 | -install_component() | 6 | +add_subdirectory(src) |
| 7 | +#add_subdirectory(examples) | ||
| 8 | +#add_subdirectory(test) |
src/CMakeLists.txt
0 → 100644
| 1 | +cmake_minimum_required(VERSION 3.16) | ||
| 2 | +LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake ) | ||
| 3 | +include(projectheader) | ||
| 4 | +project_header(datamodels) | ||
| 5 | + | ||
| 6 | +find_package(Qt5 "5.15.0" COMPONENTS Core CONFIG REQUIRED ) | ||
| 7 | + | ||
| 8 | +include_directories( SYSTEM | ||
| 9 | + ${Qt5Core_INCLUDE_DIRS} | ||
| 10 | +) | ||
| 11 | + | ||
| 12 | +include(compiler) | ||
| 13 | + | ||
| 14 | +set( SRC_LIST | ||
| 15 | + ${CMAKE_CURRENT_SOURCE_DIR}/tablemodel/tablemodel.cpp | ||
| 16 | +) | ||
| 17 | + | ||
| 18 | +include(qtmoc) | ||
| 19 | +create_mocs( SRC_LIST MOC_LIST | ||
| 20 | + ${CMAKE_CURRENT_SOURCE_DIR}/tablemodel/tablemodel.h | ||
| 21 | +) | ||
| 22 | + | ||
| 23 | +link_directories( | ||
| 24 | + ${CMAKE_BINARY_DIR}/lib | ||
| 25 | +) | ||
| 26 | + | ||
| 27 | +include(library) | ||
| 28 | +add_libraries( | ||
| 29 | + ${Qt5Core_LIBRARIES} | ||
| 30 | +) | ||
| 31 | + | ||
| 32 | + | ||
| 33 | +include(installation) | ||
| 34 | +install_component() |