This repository has been archived by the owner on Dec 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
67 lines (58 loc) · 1.49 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
55
56
57
58
59
60
61
62
63
64
65
66
67
cmake_minimum_required(VERSION 3.6)
project(inverse_way_liberation)
set(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_VERBOSE_MAKEFILE OFF)
# Demande C++14
set(CMAKE_CXX_STANDARD 14)
# g++ flags
# TODO: Enlever -Wno-reorder
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-reorder -pipe -Wpointer-arith -Winit-self -Wl,-O1 -Wl,--discard-all -Wl,--no-undefined")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og -g")
#set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -Werror")
# Compilation Time Reducer
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
include(cotire)
# Dépendances
set(EXTRA_LIBS
lua
luabind
tinyxml2
sfml-system
sfml-audio
sfml-window
sfml-graphics
sfgui
Box2D
)
# Fichiers d'en-tête
include_directories(
"/usr/local/include/"
"/usr/include"
# "../luwra-master/lib"
)
# Bibliothèques
link_directories(
"/usr/local/lib/"
)
# Inclu les sources
add_subdirectory(InverseWayLiberation)
add_definitions(-D_DEBUG)
# Crée l'exécutable
add_executable(IWL
${IWL_src}
)
target_link_libraries(IWL
${EXTRA_LIBS}
)
set_target_properties(IWL
PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "InverseWayLiberation/src/stdafx.h"
)
cotire(IWL)
install(TARGETS IWL
RUNTIME DESTINATION bin
)
#install(FILES
# ${rem_SOURCE_DIR}/../lib/poco/lib/Linux/i686/libPocoFoundation.so.5
# ${rem_SOURCE_DIR}/../build/linux/install.sh
# DESTINATION bin
#)