Merge remote-tracking branch 'origin/release-4-6' into HEAD
[alexxy/gromacs.git] / share / template / CMakeLists.txt
index 00d6be71470da100daeaa85c1cc4a1572abbf8dc..9d5fd42ca2f6fbf42e6d0ad06038bc76c1932dca 100644 (file)
@@ -1,9 +1,11 @@
+add_executable(template template.cpp)
+target_link_libraries(template libgromacs)
 install(FILES CMakeLists.txt.template
         DESTINATION ${DATA_INSTALL_DIR}/template
         RENAME CMakeLists.txt
         COMPONENT development)
 
-install(FILES README template.c Makefile.pkg
+install(FILES README template.cpp Makefile.pkg
         DESTINATION ${DATA_INSTALL_DIR}/template
         COMPONENT development)