1 2PROJECT(SHELL) 3 4add_definitions(-DUNICODE -D_UNICODE) 5 6list(APPEND SOURCE 7 CSearchBar.cpp 8 CFindFolder.cpp 9 shellfind.h) 10 11add_library(shellfind OBJECT ${SOURCE}) 12target_link_libraries(shellfind PRIVATE atl_classes) 13 14if(CMAKE_C_COMPILER_ID STREQUAL "GNU") 15 target_compile_options(shellfind PRIVATE -Wno-unused-but-set-variable) 16endif() 17 18add_pch(shellfind shellfind.h SOURCE) 19add_dependencies(shellfind psdk) 20