Skip to content

Commit 03df63e

Browse files
committed
fix issues in most demo programs
1 parent 3d4d8a7 commit 03df63e

File tree

119 files changed

+387
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+387
-114
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if(NOT FYPP)
4949
endif()
5050

5151
add_subdirectory(src)
52+
add_subdirectory(test)
5253

5354
install(EXPORT ${PROJECT_NAME}-targets
5455
NAMESPACE ${PROJECT_NAME}::

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_subdirectory(example)

test/example/CMakeLists.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
macro(ADD_DEMO name)
2+
add_executable(demo_${name} demo_${name}.f90)
3+
target_link_libraries(demo_${name} "${PROJECT_NAME}")
4+
# add_test(NAME ${name}
5+
# COMMAND $<TARGET_FILE:demo_${name}> ${CMAKE_CURRENT_BINARY_DIR}
6+
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
7+
endmacro(ADD_DEMO)
8+
9+
add_subdirectory(array)
10+
add_subdirectory(ascii)
11+
add_subdirectory(bitsets)
12+
add_subdirectory(error)
13+
add_subdirectory(hashmaps)
14+
add_subdirectory(hash_procedures)
15+
add_subdirectory(io)
16+
add_subdirectory(linalg)
17+
add_subdirectory(logger)
18+
add_subdirectory(math)
19+
add_subdirectory(optval)
20+
add_subdirectory(quadrature)
21+
add_subdirectory(random)
22+
add_subdirectory(selection)
23+
add_subdirectory(sorting)
24+
add_subdirectory(specialfunctions_gamma)
25+
add_subdirectory(stats)
26+
add_subdirectory(stats_distribution_exponential)
27+
add_subdirectory(stats_distribution_normal)
28+
add_subdirectory(stats_distribution_uniform)
29+
add_subdirectory(stringlist_type)
30+
add_subdirectory(strings)
31+
add_subdirectory(string_type)
32+
add_subdirectory(version)

test/example/array/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#ADD_DEMO(falseloc)
2+
ADD_DEMO(trueloc)

test/example/ascii/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ADD_DEMO(ascii_reverse)
2+
ADD_DEMO(ascii_to_lower)
3+
ADD_DEMO(ascii_to_sentence)
4+
ADD_DEMO(ascii_to_title)
5+
ADD_DEMO(ascii_to_upper)

0 commit comments

Comments
 (0)