set(headers
  sketch/Cusp.h
  sketch/Group.h
  sketch/Node.h
  sketch/Path.h
  sketch/Shape.h
  sketch/Style.h
  sketch/Traits.h
)

set(sources)

set(classes
  sketch/Resource
  sketch/json/jsonResource
)

set(exercises
  Solution2_1.cxx
  Solution2_2.cxx
)

foreach(class ${classes})
  list(APPEND headers ${class}.h)
  list(APPEND sources ${class}.cxx)
endforeach()

add_library(sketchStep2_solved
  ${sources} ${headers}
)
smtk_export_header(sketchStep2_solved sketch/Exports.h)
target_link_libraries(sketchStep2_solved
  PUBLIC
    smtkCore
)
target_include_directories(sketchStep2_solved
  PUBLIC
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_BINARY_DIR}
)

exercises(
  LABEL "Step2"
  SOURCES ${exercises}
  LIBRARIES sketchStep2_solved smtkCore
)
