-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
53 lines (48 loc) · 1.12 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 2.6)
project(spotiamp)
set(SPOTIAMP_SRCS
com_ptr.h
commands.h
dialogs.h
dialogs_win32.cpp
resource.h
spotifyamp.cpp
spotifyamp.h
spotifyamp.rc
stdafx.h
targetver.h
window.cpp
window.h
window_sdl.cpp
window_sdl.h
window_win32.cpp
window_win32.h
vis.cpp
visplugin.cpp
visplugin.h
zipfile.cpp
zipfile.h
audio_win32.c
audio_eq.c
audio_eq.h
fpu_util.h
tinfl.c
tinfl.h
shoutcast.h
mp3.h
build_config.h
config.h
types.h
util.h
appkey.h
tiny_spotify/tiny_spotify.h
tiny_spotify/tiny_spotify.obj
app.manifest)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "/D_CRT_NONSTDC_NO_WARNINGS")
set(CMAKE_CXX_FLAGS_RELEASE ${CMAKE_CXX_FLAGS_RELEASE} "/O1 /Ob2 /Oi /Os /Oy /GF /Gy /fp:fast /QIfist")
STRING(REGEX REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # Disable C++ exceptions
STRING(REGEX REPLACE "/GR" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) # Disable RTTI
include_directories(tiny_spotify)
add_executable(spotiamp ${SPOTIAMP_SRCS})
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_UNICODE -DUNICODE)
set_property(TARGET spotiamp APPEND PROPERTY LINK_FLAGS "/NXCOMPAT:NO /SAFESEH:NO")