-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (30 loc) · 1.28 KB
/
CMakeLists.txt
File metadata and controls
35 lines (30 loc) · 1.28 KB
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
#SCD is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#SCD is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.2)
PROJECT(SCD CXX)
set( CMAKE_EXPORT_COMPILE_COMMANDS 1 )
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -pg -fopenmp -DPROFILE ")
SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -fopenmp -DNDEBUG")
#SET(CMAKE_VERBOSE_MAKEFILE ON)
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE Release)
endif()
ADD_SUBDIRECTORY(./tools/wcc)
ADD_SUBDIRECTORY(./tools/f1score)
ADD_SUBDIRECTORY(./tools/selector)
ADD_SUBDIRECTORY(./tools/cc)
ADD_SUBDIRECTORY(./tools/communityAnalyzer)
INCLUDE_DIRECTORIES(./include)
FILE( GLOB_RECURSE SOURCE_FILES "source/*" )
ADD_EXECUTABLE(scd ${SOURCE_FILES})