-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCMakeLists.txt
43 lines (33 loc) · 1.08 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
# Copyright (c) 2013 Alexander Konovalov. All rights reserved.
# Use of this source code is governed by a GPL-style license that can be
# found in the LICENSE file.
project(FOnlineOpenSource)
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMake")
if ("${CMAKE_BUILD_TYPE}" STREQUAL "")
set(CMAKE_BUILD_TYPE Debug)
endif()
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
endif()
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
include_directories("inc")
link_directories(${CMAKE_SOURCE_DIR}/lib)
endif()
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wno-strict-aliasing")
###############################################################################
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(modules
IniFile
LZSS
ACMDecompressor
DatArchive
FOnlineFileManager
FOnlineCommon
FOnlineServer
)
foreach (module ${modules})
message(STATUS " * Preparing ${module} module...")
add_subdirectory(src/${module})
endforeach (module)
add_custom_target(build COMMAND make)