-
Notifications
You must be signed in to change notification settings - Fork 246
/
CMakeLists.txt
34 lines (29 loc) · 958 Bytes
/
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
cmake_minimum_required (VERSION 3.0.2)
function(AddRpcCore Directory)
message("[${Directory}]")
add_library(${Directory} SHARED
# ComInternals.c
RpcCore.c
../RpcCommon/ntdll.c
../RpcCommon/Misc.c
RpcCore.def
RpcCoreResource.rc
)
target_include_directories(
${Directory} PUBLIC
${Directory}
)
endfunction(AddRpcCore)
file(GLOB CoreFiles *)
foreach(Files ${CoreFiles})
if (IS_DIRECTORY ${Files} )
get_filename_component(Dir ${Files} NAME)
if(${CMAKE_GENERATOR} MATCHES "Win64")
AddRpcCore(${Dir})
else(${CMAKE_GENERATOR} MATCHES "Win64")
if(${Dir} MATCHES "32bits")
AddRpcCore(${Dir})
endif(${Dir} MATCHES "32bits")
endif(${CMAKE_GENERATOR} MATCHES "Win64")
endif (IS_DIRECTORY ${Files} )
endforeach(Files)