file(GLOB sources "*.cpp") file(GLOB headers "*.hpp") set(libs common ${JCLWrapper_LIBRARIES} ${JNSAppWrapper_LIBRARIES} ${ImageStreams_LIBRARIES} moggle_xxx) add_library(common ${headers} ${sources}) target_link_libraries(common ${libs}) target_include_directories(common PUBLIC ".")