-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
60 lines (51 loc) · 1.74 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
set(PAECS_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories (${PAECS_SRC_DIR} ../parallel-hashmap)
file(GLOB_RECURSE SRC_FILES ${PAECS_SRC_DIR}/*.cpp ${PAECS_SRC_DIR}/*.cc)
set(NAME paecs)
add_library(${NAME} STATIC ${SRC_FILES})
# if(MSVC)
# # message(${CMAKE_BUILD_TYPE})
# IF (CMAKE_BUILD_TYPE MATCHES "Debug")
# set_target_properties( ${NAME} PROPERTIES
# COMPILE_FLAGS "/MTd"
# )
# ELSE()
# set_target_properties( ${NAME} PROPERTIES
# COMPILE_FLAGS "/MT"
# )
# ENDIF()
# endif()
# SET(CMAKE_EXE_LINKER_FLAGS /NODEFAULTLIB:"libcmt.lib")
# if (MSVC)
# if (NOT USE_MSVC_RUNTIME_LIBRARY_DLL)
# foreach (flag CMAKE_C_FLAGS
# CMAKE_C_FLAGS_DEBUG
# CMAKE_C_FLAGS_RELEASE
# CMAKE_C_FLAGS_MINSIZEREL
# CMAKE_C_FLAGS_RELWITHDEBINFO)
# if (${flag} MATCHES "/MD")
# string(REGEX REPLACE "/MD" "/MT" ${flag} "${${flag}}")
# endif()
# if (${flag} MATCHES "/MDd")
# string(REGEX REPLACE "/MDd" "/MTd" ${flag} "${${flag}}")
# endif()
# endforeach()
# endif()
# endif()
if(MSVC)
# message(${CMAKE_BUILD_TYPE})
# IF (CMAKE_BUILD_TYPE MATCHES "Debug")
# set_target_properties( ${NAME} PROPERTIES
# COMPILE_FLAGS "/MTd"
# )
# ELSE()
set_target_properties( ${NAME} PROPERTIES
COMPILE_FLAGS "/MD"
)
# ENDIF()
endif()
# target_link_libraries(${NAME} PUBLIC ${IMGUI_PUBLIC_LIBRARIES})
# target_include_directories(${NAME}
# PUBLIC ${IMGUI_PUBLIC_INCLUDE_DIRS}
# PRIVATE ${IMGUI_PRIVATE_INCLUDE_DIRS}
# )