minor
[far2l.git] / autowrap / CMakeLists.txt
blob6d0d9de3faf6e62527ff18d289f2184b8d610c71
2 project(autowrap)
4 set(SOURCES
5 src/AutoWrap.cpp 
8 add_library (autowrap MODULE ${SOURCES})
10 target_link_libraries(autowrap utils far2l)
12 target_compile_definitions(autowrap PRIVATE -DWINPORT_DIRECT -DUNICODE -DFAR_DONT_USE_INTERNALS)
14 target_include_directories(autowrap PRIVATE .)
15 target_include_directories(autowrap PRIVATE ../far2l/far2sdk)
16 target_include_directories(autowrap PRIVATE ../WinPort)
18 set_target_properties(autowrap
19     PROPERTIES
20         LIBRARY_OUTPUT_DIRECTORY "${INSTALL_DIR}/Plugins/autowrap/plug"
21         PREFIX ""
22         SUFFIX ".far-plug-wide")
25 add_custom_command(TARGET autowrap POST_BUILD
26     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/configs
27     COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/configs "${INSTALL_DIR}/Plugins/autowrap"