[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Aug 2010 23:35:57 +0000 (23:35 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 21 Aug 2010 23:35:57 +0000 (23:35 +0000)
- Add acledit to build.

svn path=/branches/cmake-bringup/; revision=48586

dll/win32/CMakeLists.txt
dll/win32/acledit/CMakeLists.txt [new file with mode: 0644]

index d85d3a5..0f45944 100644 (file)
@@ -1,4 +1,5 @@
 
+add_subdirectory(acledit)
 add_subdirectory(aclui)
 add_subdirectory(advapi32)
 add_subdirectory(gdi32)
diff --git a/dll/win32/acledit/CMakeLists.txt b/dll/win32/acledit/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2be028c
--- /dev/null
@@ -0,0 +1,21 @@
+
+set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
+
+add_definitions(-DUNICODE -D_UNICODE)
+add_definitions(-DSUPPORT_UXTHEME)
+
+file(GLOB_RECURSE SOURCE *.c)
+
+spec2def(acledit ${CMAKE_CURRENT_SOURCE_DIR}/acledit.spec ${CMAKE_CURRENT_BINARY_DIR}/acledit.def)
+
+add_library(acledit SHARED
+    ${SOURCE}
+    ${CMAKE_CURRENT_SOURCE_DIR}/acledit.rc)
+
+set_target_properties(acledit PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
+
+target_link_libraries(acledit
+    ${CMAKE_CURRENT_BINARY_DIR}/acledit.def
+    ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
+
+add_dependencies(acledit acledit_def psdk)