FILE(GLOB SOURCES src/*.cpp) #compiling library add_library(neural_network STATIC ${SOURCES}) target_link_libraries(neural_network dynet)