-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (34 loc) · 1.44 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
cmake_minimum_required(VERSION 3.10)
project(np2m)
set(CMAKE_CXX_STANDARD 14)
#####################################
### For debug mode
#####################################
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -Wall -Wextra -Werror")
#####################################
### For release mode
#####################################
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -O3 -march=native")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
set(SRC src/main.cpp)
################################
### For string utils
###############################
set(INC include/StringUtils.h)
set(SRC ${SRC} src/StringUtils/LowerAndUpperCaseConvert.cpp)
set(SRC ${SRC} src/StringUtils/RemoveSpace.cpp)
set(SRC ${SRC} src/StringUtils/SplitNumVecFromString.cpp)
set(SRC ${SRC} src/StringUtils/SplitStringVecBySymbol.cpp)
####################################
### For GeoReader
####################################
set(INC ${INC} include/GeoReader.h)
set(SRC ${SRC} src/GeoReader/GeoReader.cpp src/GeoReader/GeoReaderRun.cpp)
set(SRC ${SRC} src/GeoReader/PrintHelper.cpp src/GeoReader/PrintInfo.cpp)
set(SRC ${SRC} src/GeoReader/ReadGeoFile.cpp)
set(SRC ${SRC} src/GeoReader/RunJobForCircle.cpp)
set(SRC ${SRC} src/GeoReader/RunJobForRect.cpp)
set(SRC ${SRC} src/GeoReader/RunJobForCubic.cpp)
set(SRC ${SRC} src/GeoReader/JudgeFuns.cpp)
add_executable(np2m-dev ${SRC} ${INC})