project(Foundation) find_package(Qt${QtMVersion} COMPONENTS Core Network Sql) set(CMAKE_INCLUDE_CURRENT_DIR ON) add_subdirectory(External) add_subdirectory(Internal) add_subdirectory(Main) set(Module NodeMaster_Server) qt_add_resources(res ./res/resource.qrc ) add_library( ${Module} SHARED ${res} NodeMaster_Core.h NodeMaster_Core.cpp NodeMaster_CoreInit.h NodeMaster_CoreInit.cpp ServiceManager.h ServiceManager.cpp ) target_include_directories(${Module} PUBLIC ${Includes}) target_compile_options(${Module} PUBLIC "-fPIC") target_link_options(${Module} PUBLIC "-rdynamic") target_link_libraries(${Module} KalpaLib NodeMaster_Server_External NodeMaster_Server_Internal ) install(TARGETS ${Module} DESTINATION ${CMAKE_INSTALL_PREFIX}/${AriVersion}/lib)