Add tentative support for DllMain of high loaded DLLs.
[wincetools.git] / loader / CMakeLists.txt
1 project(himemce)
2 cmake_minimum_required(VERSION 2.6.0)
3
4 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
5
6 # For dlmalloc.h
7 add_definitions(-DUSE_DL_PREFIX=1)
8
9 add_library(libhimemce SHARED libhimemce.c libhimemce.def)
10 install(TARGETS libhimemce DESTINATION bin)
11
12 add_executable(himemce himemce.c
13   wine.h my_winternl.h compat.c
14 #  dlmalloc.h dlmalloc.c
15   kernel32_kernel_private.h kernel32_process.c kernel32_module.c
16   ntdll_error.c ntdll_loader.c ntdll_virtual.c
17   server_protocol.h server_mapping.c)
18 target_link_libraries(himemce libhimemce)
19 install(TARGETS himemce DESTINATION bin)
20
21
22 #Example rules how to build a library.
23 #add_library(newtest SHARED newtest.cpp newtest.def)
24 #add_executable(newtestex newtestex.cpp)
25 #target_link_libraries(newtestex newtest)
26 #install(TARGETS newtest newtestex DESTINATION bin)
27
28 add_executable(himemce-real himemce-real.cpp)
29 SET_TARGET_PROPERTIES(himemce-real PROPERTIES LINK_FLAGS " /FIXED:NO")
30 # Not necessary anymore.
31 #SET_TARGET_PROPERTIES(himemce-real PROPERTIES LINK_FLAGS " /FILEALIGN:4096")
32 install(TARGETS himemce-real DESTINATION bin)
33
34 add_executable(himemce-tool himemce-tool.c
35   himemce-map.h himemce-map.c)
36 install(TARGETS himemce-tool DESTINATION bin)
37
38 add_executable(himemce-pre himemce-pre.c
39   himemce-map.h himemce-map.c
40   himemce-map-provider.c
41   wine.h my_winternl.h compat.c
42 #  dlmalloc.h dlmalloc.c
43   kernel32_kernel_private.h kernel32_process.c kernel32_module.c
44   ntdll_error.c ntdll_loader.c ntdll_virtual.c
45   server_protocol.h server_mapping.c)
46 target_link_libraries(himemce-pre libhimemce)
47 install(TARGETS himemce-pre DESTINATION bin)
48
49
50 # Copyright 2010 g10 Code GmbH
51 #
52 # This file is free software; as a special exception the author gives
53 # unlimited permission to copy and/or distribute it, with or without
54 # modifications, as long as this notice is preserved.
55 #
56 # This file is distributed in the hope that it will be useful, but
57 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
58 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.