-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
97 lines (65 loc) · 1.77 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# -*- CMakeLists.txt generated by CodeLite IDE. Do not edit by hand -*-
cmake_minimum_required(VERSION 2.8.11)
# Project name
project(TicTacToe)
# This setting is useful for providing JSON file used by CodeLite for code completion
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
# Set default locations
set(CL_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../cmake-build-Release/output)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CL_OUTPUT_DIRECTORY})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CL_OUTPUT_DIRECTORY})
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CL_OUTPUT_DIRECTORY})
set(CONFIGURATION_NAME "Release")
# Projects
# Top project
# Define some variables
set(PROJECT_TicTacToe_PATH "${CMAKE_CURRENT_LIST_DIR}")
set(WORKSPACE_PATH "${CMAKE_CURRENT_LIST_DIR}/..")
#{{{{ User Code 1
# Place your code here
#}}}}
include_directories(
.
.
C:/MinGW64/include
usr/include
)
# Compiler options
add_definitions(-O2)
add_definitions(-Wall)
add_definitions(
-DNDEBUG
)
# Linker options
set(LINK_OPTIONS -mwindows)
if(WIN32)
# Resource options
endif(WIN32)
# Library path
set(CMAKE_LDFLAGS "${CMAKE_LDFLAGS} -L. -L. -LC:/MinGW64/lib -Lusr/lib -LC:/MinGW64/lib ")
# Define the CXX sources
set ( CXX_SRCS
${CMAKE_CURRENT_LIST_DIR}/main.cpp
)
set_source_files_properties(
${CXX_SRCS} PROPERTIES COMPILE_FLAGS
" -O2 -Wall")
if(WIN32)
enable_language(RC)
set(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> ${RC_OPTIONS} -O coff -i <SOURCE> -o <OBJECT>")
endif(WIN32)
#{{{{ User Code 2
# Place your code here
#}}}}
add_executable(TicTacToe ${RC_SRCS} ${CXX_SRCS} ${C_SRCS})
target_link_libraries(TicTacToe ${LINK_OPTIONS})
target_link_libraries(TicTacToe
sfml-window
sfml-network
sfml-graphics
sfml-system
)
#{{{{ User Code 3
# Place your code here
#}}}}