# Note that headers are optional, and do not affect add_library, but they will not
# show up in IDEs unless they are listed in add_library.

file(GLOB HEADERS_LIST "include/*.hpp" "include/*.h")
file(GLOB SRC_LIST "src/*.cpp")
# Optionally glob, but only for CMake 3.12 or later:
# file(GLOB HEADER_LIST CONFIGURE_DEPENDS "${ModernCMakeExample_SOURCE_DIR}/include/modern/*.hpp")



# Make an automatic library - will be static or dynamic based on user setting
add_library(inc opencl_helper.cpp simulation.cpp ${HEADER_LIST})


# We need this directory, and users of our library will need it too
target_include_directories(inc PUBLIC ../include)

# This depends on (header only) boost
target_link_libraries(inc PRIVATE OpenCL::OpenCL)

# All users of this library will need at least C++11
target_compile_features(inc PUBLIC cxx_std_17)

# IDEs should put the headers in a nice place
source_group(
  TREE "${PROJECT_SOURCE_DIR}/include"
  PREFIX "Header Files"
  FILES ${HEADER_LIST})
