forked from etternagame/etterna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
54 lines (48 loc) · 1.65 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
54
# Disable all warnings for this directory
# Here are possible CMAKE_CXX_COMPILER_ID values: https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html
message(STATUS ${CMAKE_CXX_COMPILER_ID})
if(WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
add_compile_options(/W0)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL AppleClang)
set_directory_properties(PROPERTIES XCODE_ATTRIBUTE_GCC_WARN_INHIBIT_ALL_WARNINGS YES)
else() # All remaining compilers
add_compile_options(-w)
endif()
# Universally required
add_subdirectory(rapidjson)
add_subdirectory(asio-1.12.2)
add_subdirectory(websocketpp)
add_subdirectory(LuaJIT-2.1.0-beta3)
add_subdirectory(discord-rpc)
add_subdirectory(SQLiteCpp)
add_subdirectory(libtomcrypt)
add_subdirectory(libtommath)
add_subdirectory(fftw-3.3.8)
add_subdirectory(MinaCalc)
add_subdirectory(glew-1.5.8)
add_subdirectory(pcre)
add_subdirectory(stb)
add_subdirectory(libuv)
add_subdirectory(zlib)
add_subdirectory(libcurl)
add_subdirectory(mad-0.15.1b)
add_subdirectory(newogg)
add_subdirectory(newvorbis)
if(MSVC) # Only required on Windows
add_subdirectory(ffmpeg)
endif()
# Disable unused targets from building
## EXCLUDE_FROM_ALL stops building on linux
## EXCLUDE_FROM_DEFAULT_BUILD stops building on Visual Studio
set_target_properties(uv PROPERTIES EXCLUDE_FROM_ALL 1 EXCLUDE_FROM_DEFAULT_BUILD 1)
# Organize Files in IDE
list(APPEND ET_EXT_TARGETS
luajit lua minilua buildvm
discord-rpc
SQLiteCpp sqlite3
uv uv_a
tomcrypt libtommath
fftw3f glfw pcre
zlib libmad
ogg vorbis)
set_property(TARGET ${ET_EXT_TARGETS} PROPERTY FOLDER "External Libraries") # Sort all extern libraries to a IDE folder/filter