Move all temporary import libs to a single directory.
[reactos.git] / drivers / filesystems / cdfs / CMakeLists.txt
1
2 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>")
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
5
6 list(APPEND SOURCE
7 cdfs.c
8 cleanup.c
9 close.c
10 common.c
11 create.c
12 dirctl.c
13 fcb.c
14 finfo.c
15 fsctl.c
16 misc.c
17 rw.c
18 volinfo.c
19 cdfs.rc)
20
21 add_library(cdfs SHARED ${CMAKE_CURRENT_BINARY_DIR}/cdfs_cdfs.h.gch ${SOURCE})
22
23 set_target_properties(cdfs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
24
25 target_link_libraries(cdfs
26 -lntoskrnl
27 -lhal)
28
29 add_pch(cdfs ${CMAKE_CURRENT_SOURCE_DIR}/cdfs.h ${SOURCE})
30 add_dependencies(cdfs psdk bugcodes)