-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (33 loc) · 1.39 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
cmake_minimum_required(VERSION 3.22)
project(ParallalSuffixArray)
#set CXX standard to 17
#set(CMAKE_C_COMPILER "clang")
#set(CMAKE_CXX_COMPILER "clang++")
# add flag -std=c++17 to cxx compiler
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
message(STATUS "CMAKE_C_COMPILER: ${CMAKE_C_COMPILER}")
message(STATUS "CMAKE_CXX_COMPILER: ${CMAKE_CXX_COMPILER}")
#set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp=libomp")
#find_package(OpenMP)
#if (OPENMP_FOUND)
# message(STATUS "OpenMP found")
# set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
# set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
#endif()
#include(FetchContent)
#FetchContent_Declare(
# parlaylib
# GIT_REPOSITORY https://github.com/cmuparlay/parlaylib.git
# GIT_TAG master
#)
#FetchContent_MakeAvailable(parlaylib)
add_executable(build_sa src/main.cpp)
#SET(BUILD_DIVSUFSORT64 ON CACHE BOOL "Build libdivsufsort64")
#add_subdirectory(libdivsufsort)
#add_dependencies(sa divsufsort64)
#target_link_libraries(sa divsufsort64)
#target_include_directories(sa PRIVATE "${CMAKE_BINARY_DIR}/libdivsufsort/include")
set(parlaylib_SOURCE_DIR "/home/alex/Programming/Tools/parlaylib")
target_include_directories(build_sa PRIVATE ${parlaylib_SOURCE_DIR} ${parlaylib_SOURCE_DIR}/include/)