Manage compiler flags and some include options per file or target, not globally
[alexxy/gromacs.git] / share / template / CMakeLists.txt
index e4d4c0a674e844d13fcd93978d0c49eb613ef869..330cbbd460739e2bf14991f7068869445bcf2746 100644 (file)
 # the research papers on the package. Check out http://www.gromacs.org.
 
 add_executable(template template.cpp)
+if (WIN32)
+    gmx_target_warning_suppression(template /wd4244 HAS_NO_MSVC_LOSSY_CONVERSION_DOUBLE_TO_REAL)
+    gmx_target_warning_suppression(template /wd4267 HAS_NO_MSVC_LOSSY_CONVERSION_SIZE_T_TO_INT)
+endif()
 target_link_libraries(template libgromacs ${GMX_EXE_LINKER_FLAGS})
 
 set(DOCUMENTATION_HTTP_URL_BASE