Convert to unix line endings.
[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_executable(himemce himemce.c
10   wine.h my_winternl.h compat.c
11 #  dlmalloc.h dlmalloc.c
12   kernel32_kernel_private.h kernel32_process.c kernel32_module.c
13   ntdll_error.c ntdll_loader.c ntdll_virtual.c
14   server_protocol.h server_mapping.c)
15 install(TARGETS himemce DESTINATION bin)
16
17 #Example rules how to build a library.
18 #add_library(newtest SHARED newtest.cpp newtest.def)
19 #add_executable(newtestex newtestex.cpp)
20 #target_link_libraries(newtestex newtest)
21 #install(TARGETS newtest newtestex DESTINATION bin)
22
23 add_executable(himemce-real himemce-real.cpp)
24 SET_TARGET_PROPERTIES(himemce-real PROPERTIES LINK_FLAGS " /FIXED:NO")
25 # Not necessary anymore.
26 #SET_TARGET_PROPERTIES(himemce-real PROPERTIES LINK_FLAGS " /FILEALIGN:4096")
27 install(TARGETS himemce-real DESTINATION bin)
28
29 add_executable(himemce-tool himemce-tool.c
30   himemce-map.h himemce-map.c)
31 install(TARGETS himemce-tool DESTINATION bin)
32
33 add_executable(himemce-pre himemce-pre.c
34   himemce-map.h himemce-map.c
35   himemce-map-provider.c
36   wine.h my_winternl.h compat.c
37 #  dlmalloc.h dlmalloc.c
38   kernel32_kernel_private.h kernel32_process.c kernel32_module.c
39   ntdll_error.c ntdll_loader.c ntdll_virtual.c
40   server_protocol.h server_mapping.c)
41 install(TARGETS himemce-pre DESTINATION bin)
42
43
44 # Copyright 2010 g10 Code GmbH
45 #
46 # This file is free software; as a special exception the author gives
47 # unlimited permission to copy and/or distribute it, with or without
48 # modifications, as long as this notice is preserved.
49 #
50 # This file is distributed in the hope that it will be useful, but
51 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
52 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.