-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
26 lines (23 loc) · 1.05 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
cmake_minimum_required(VERSION 2.8.10.20130415)
project(foobar2000-${CMAKE_GENERATOR_TOOLSET})
add_definitions(-DUNICODE=1 -D_UNICODE=1 -D_WIN32_WINNT=0x501 -DBOOST_ALL_NO_LIB=1)
set(USER_COMPONENTS_DIR ${CMAKE_CURRENT_BINARY_DIR}/portable/user-components/)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(FB2K_STATIC_RUNTIME "OFF" CACHE BOOL "Semicolon separated list of component names")
if(${FB2K_STATIC_RUNTIME})
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
if(${flag_var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endif()
if(${flag_var} MATCHES "/MDd")
string(REGEX REPLACE "/MDd" "/MTd" ${flag_var} "${${flag_var}}")
endif()
endforeach(flag_var)
endif()
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/atl/include")
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/atl/lib")
add_subdirectory(wtl)
add_subdirectory(pfc)
add_subdirectory(foobar2000)