]> vaikene.ee Git - evaf/blob - CMakeWin.txt
The ScosTime application now more user friendly.
[evaf] / CMakeWin.txt
1 # Extra rules for Windows builds
2
3 if(MINGW)
4 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
5
6 # gcc options for release and debug builds
7 IF(CMAKE_BUILD_TYPE STREQUAL Release)
8 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
9 ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
10 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
11 ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
12
13 set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
14
15 else(MINGW)
16 # Assume a Microsoft Visual C++ compiler
17 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zc:wchar_t-")
18 endif(MINGW)