remwharead/browser-plugins/webextension/native-wrapper/CMakeLists.txt
tastytea b4e845a352
Some checks failed
continuous-integration/drone/push Build is failing
Updated CMake recipes and changed file structure.
2019-08-03 22:27:08 +02:00

14 lines
481 B
CMake

set(INSTALL_MOZILLA_NMH_DIR "${CMAKE_INSTALL_PREFIX}/${MOZILLA_NMH_DIR}")
add_executable(${PROJECT_NAME}_wrapper ${PROJECT_NAME}_wrapper.cpp)
target_link_libraries(${PROJECT_NAME}_wrapper PRIVATE stdc++fs)
install(TARGETS ${PROJECT_NAME}_wrapper DESTINATION ${MOZILLA_NMH_DIR})
configure_file("${PROJECT_NAME}.json.in"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.json" @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.json
DESTINATION ${MOZILLA_NMH_DIR})