Commit 7e9d401c4df19faa4a208f7cebf80be00895323d

Authored by Peter M. Groen
1 parent a89f3bb3

Setting up the buildstructure

CMakeLists.txt
1 cmake_minimum_required(VERSION 3.0) 1 cmake_minimum_required(VERSION 3.0)
2 project(osdev_pugixml) 2 project(osdev_pugixml)
3 -# ==============================================================================  
4 -# Check to see if we're a submodule or top-repo.  
5 -if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/submodules/cmake)  
6 - message( STATUS "Looks like we're a single module" )  
7 - LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/submodules/cmake)  
8 -elseif(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../submodules/cmake)  
9 - message( STATUS "Looks like we're a submodule" )  
10 - LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../submodules/cmake)  
11 -else()  
12 - message( FATAL_ERROR "No cmake directory found. Did you run the submodules script?" )  
13 -endif() 3 +LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/submodules/cmake)
14 4
15 -# ==============================================================================  
16 -# Check to see if there is versioning information available  
17 -if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/submodules/versioning)  
18 - LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/submodules/versioning/cmake)  
19 -elseif(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../submodules/versioning)  
20 - LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../submodules/versioning/cmake)  
21 -else()  
22 - message( FATAL_ERROR "No ${CURRENT_SOURCE_DIR}/osdev_versioning directory found. Did you run the submodules script?" )  
23 -endif()  
24 -  
25 -# ==============================================================================  
26 5
27 include(projectheader) 6 include(projectheader)
28 project_header(osdev_pugixml) 7 project_header(osdev_pugixml)
@@ -30,5 +9,5 @@ project_header(osdev_pugixml) @@ -30,5 +9,5 @@ project_header(osdev_pugixml)
30 add_subdirectory(src) 9 add_subdirectory(src)
31 add_subdirectory(tests) 10 add_subdirectory(tests)
32 11
33 -# include(packaging)  
34 -# package_component() 12 +include(packaging)
  13 +package_component()
scripts/submodules.list
1 -SUB_MODULES_OPEN="versioning  
2 -cmake" 1 +SUB_MODULES_OPEN="cmake"
3 2
4 SUB_MODULES_CLOSED="" 3 SUB_MODULES_CLOSED=""