-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Quetzal-framework/develop
doc: trying mrdox support
- Loading branch information
Showing
9 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# requires cxx_std_20 new in CMake 3.12 | ||
cmake_minimum_required(VERSION 3.12) | ||
|
||
# Tell find_package() to first search using Config mode before falling back to Module mode (for conan) | ||
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE) | ||
|
||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
# Global approach Gdal | ||
find_package(GDAL REQUIRED) | ||
|
||
# range-v3 | ||
find_package(range-v3) | ||
|
||
# mp-units | ||
find_package(mp-units CONFIG REQUIRED) | ||
|
||
# Include Boost as an imported target: 1.73 important for compilation with gcc 10 and C++20 | ||
find_package(Boost 1.79 REQUIRED COMPONENTS unit_test_framework filesystem serialization) | ||
if(Boost_FOUND) | ||
include_directories(${Boost_INCLUDE_DIRS}) # Find Boost headers only | ||
ENDIF() | ||
|
||
file(GLOB SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp) | ||
foreach(testSrc ${SRCS}) | ||
# Extract the filename without an extension (NAME_WE) | ||
get_filename_component(testName ${testSrc} NAME_WE) | ||
# Add compile target | ||
add_executable(${testName} ${testSrc}) | ||
# Require the standard | ||
target_compile_features(${testName} PUBLIC cxx_std_23) | ||
# Ignore warnings about subtle ABI change | ||
target_compile_options(${testName} PUBLIC "-Wno-psabi") | ||
# Link to Boost libraries AND other targets and dependencies | ||
target_link_libraries(${testName} quetzal::quetzal boost::boost GDAL::GDAL range-v3::range-v3 mp-units::mp-units) | ||
# Specifies include directories to use when compiling a given target | ||
target_include_directories( | ||
${testName} PRIVATE | ||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>) | ||
endforeach(testSrc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "quetzal/coalescence.hpp" | ||
|
||
int main(){ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
concurrency: 1 # number of threads to use | ||
source-root: ../ # source files relative to the mrdox.yml file | ||
multipage: false # generate multiple pages | ||
verbose: true # print verbose output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "quetzal/demography.hpp" | ||
|
||
int main(){ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "quetzal/expressive.hpp" | ||
|
||
int main(){ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "quetzal/geography.hpp" | ||
|
||
int main(){ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "quetzal/io.hpp" | ||
|
||
int main(){ | ||
return 0; | ||
} |