corrected cmake with target
added main for linker