Skip to content

Commit

Permalink
check files in two directories
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri Rusin committed Nov 13, 2023
1 parent 2c0b269 commit 683f170
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,46 @@ if(EXISTS "${STATIC_DIR}")
else()
message(STATUS "STATIC directory DOES NOT EXIST :((( at ${STATIC_DIR}")
endif()



# Check if the IOHexperimenter directory exists and list its contents
if(EXISTS "${PROJECT_SOURCE_DIR}")
file(GLOB IOHEXPERIMENTER_CONTENTS "${PROJECT_SOURCE_DIR}/*")
message(STATUS "Listing contents of IOHexperimenter:")
foreach(FILE ${IOHEXPERIMENTER_CONTENTS})
message(STATUS " ${FILE}")
endforeach()
else()
message(STATUS "IOHexperimenter directory DOES NOT EXIST at ${PROJECT_SOURCE_DIR}")
endif()



# Check if the IOHexperimenter directory exists and list its contents
if(EXISTS "${PROJECT_SOURCE_DIR}/IOHexperimenter")
file(GLOB IOHEXPERIMENTER_CONTENTS "${PROJECT_SOURCE_DIR}/IOHexperimenter/*")
message(STATUS "Listing contents of IOHexperimenter:")
foreach(FILE ${IOHEXPERIMENTER_CONTENTS})
message(STATUS " ${FILE}")
endforeach()
else()
message(STATUS "IOHexperimenter directory DOES NOT EXIST at ${PROJECT_SOURCE_DIR}/IOHexperimenter")
endif()
















# Define project targets.
Expand Down

0 comments on commit 683f170

Please sign in to comment.